Other Parts Discussed in Thread: OPT3001
Hi,
we have a simple board with only 2 x TLC59116 on the I2C but. One with HW address selecting bits to 0 and the second to 1.
I send the code below (only few lines in main() but the LED does not turn on. The I2C communication on the scope is correct, I see all 3 bytes including the ACK for each byte so the device is receiving the data.
Can you please let me know:
- am I missing something
- do I need to run some other commands before or after in order to turn the LEDs on?
- can you please write a snipped of pseudo-code with the correct bytes/commands sequence
Many thanks
Rick
//compose message i2cData[0] = 0xC0; // I2C slave address (including A0 HW-configured) + R/_W bit i2cData[1] = 0x14; // Control register i2cData[2] = 0x01; // Set LED fully on i2cDataSz = 3; // message size I2CState = I2C_SendMessage(I2C_2, i2cData, i2cDataSz);