48 #define PRINTFDEBUG(...) printf(__VA_ARGS__)
50 #define PRINTFDEBUG(...)
56 void tlc59116_init(
void);
63 void tlc59116_write_reg(uint8_t reg, uint8_t val);
73 void tlc59116_write_stream(uint8_t len, uint8_t * data);
80 uint8_t tlc59116_read_reg(uint8_t reg);
88 void tlc59116_read_stream(uint8_t reg, uint8_t len, uint8_t * whereto);
95 void tlc59116_led(uint8_t led, uint8_t pwm);
102 #define TLC59116_MODE1_DEFAULT 0x00 // Default (no sub or all call) + OSC on
103 #define TLC59116_MODE2_DEFAULT 0x00 // Default (output change on stop)
105 #define TLC59116_LEDOUT_PWM 0xAA // LDRx = 01 -> PWM; 4 leds per reg: 01010101b -> 0xAA
110 #define TLC59116_ADDR 0x60 //7bit adress, 8bit write adress: 0xC0
113 #define TLC59116_MODE1 0x00
114 #define TLC59116_MODE2 0x01
115 #define TLC59116_PWM0_AUTOINCR 0xA2 //auto increment address for first pwm register
116 #define TLC59116_PWM0 0x02
117 #define TLC59116_PWM1 0x03
118 #define TLC59116_PWM2 0x04
119 #define TLC59116_PWM3 0x05
120 #define TLC59116_PWM4 0x06
121 #define TLC59116_PWM5 0x07
122 #define TLC59116_PWM6 0x08
123 #define TLC59116_PWM7 0x09
124 #define TLC59116_PWM8 0x0A
125 #define TLC59116_PWM9 0x0B
126 #define TLC59116_PWM10 0x0C
127 #define TLC59116_PWM11 0x0D
128 #define TLC59116_PWM12 0x0E
129 #define TLC59116_PWM13 0x0F
130 #define TLC59116_PWM14 0x10
131 #define TLC59116_PWM15 0x11
132 #define TLC59116_GRPPWM 0x12
133 #define TLC59116_GRPFREQ 0x13
134 #define TLC59116_LEDOUT0 0x14
135 #define TLC59116_LEDOUT1 0x15
136 #define TLC59116_LEDOUT2 0x16
137 #define TLC59116_LEDOUT3 0x17
I2C communication device driver header file for Zolertia Z1 sensor node.