Hi Atsushi,
well, I don't think there's a 'ready to go' example available from TI! The only thing I'm aware of is the EVM software mentioned above.
Well, the TLC59116 is a (simple) I2C device. So, you need to write a I2C driver which is able to send single or/and multiple bytes of data (preferred) to the TLC59116 slave.
Start with the ALLCALL-Address since the device will acknowledge regardless of your A0 to A3 connections.
Generating the LED patterns can be done with different functions, i.e.
// Running Light 1
// One Dot running from left to right
// Speed is defined by parameter speed
void runninglight1(int Speed)
{
for (int i=1 ; i < 17; i++)
{
// dot running left
Set_LED_PWM(i,255); // LED on at full brightness; PWMx-register = 0xFF
delay(Speed); // make some delay
Set_LED_PWM(i,0); // LED off; PWMx-regsiter = 0x00
}
for (int i=15 ; i >0; i--)
{
// dot running right
Set_LED_PWM(i,255); // LED on at full brightness; PWMx-register = 0xFF
delay(Speed); // make some delay
Set_LED_PWM(i,0); // LED off; PWMx-regsiter = 0x00
}
}
The Set_LED_PWM() is the functions which writes the data to the device via I2C.
Rgds
aBUGSworstnightmare