#include <avr/io.h>
#include <util/delay.h>
#include "saa1064.h"
Include dependency graph for saa1064.c:
Go to the source code of this file.
Defines | |
#define | LEDPORT PORTC |
the Port used for the connection | |
#define | LEDPIN PINC |
the Port used for the connection | |
#define | LEDDDR DDRC |
the Port used for the connection | |
#define | SDAPIN PC4 |
which pins of the port | |
#define | SCLPIN PC5 |
which pins of the port | |
#define | SAA_ADR 0x70 |
the I2C addresses of the SAA 1064 LED drivers | |
#define | I2C_READ 0x01 |
command used to read from I2C | |
#define | I2C_WRITE 0x00 |
command used to write to I2C | |
#define | DELAYVAL 3 |
pause between certain actions on the bus. | |
Functions | |
void | led_init (void) |
Initialize the LED module. | |
void | set_led_digit (uint8_t digit, uint8_t val) |
This sets one digit on the LED module. | |
void | set_led_brightness (uint8_t led_brightness) |
Configures the brightness of the LEDs. |
Definition in file saa1064.c.
#define DELAYVAL 3 |
#define I2C_WRITE 0x00 |
command used to write to I2C
Definition at line 26 of file saa1064.c.
Referenced by set_led_brightness(), and set_led_digit().
#define SAA_ADR 0x70 |
the I2C addresses of the SAA 1064 LED drivers
Definition at line 23 of file saa1064.c.
Referenced by set_led_brightness(), and set_led_digit().
void led_init | ( | void | ) |
void set_led_brightness | ( | uint8_t | led_brightness | ) |
void set_led_digit | ( | uint8_t | digit, | |
uint8_t | val | |||
) |