16 CHANNELS LED DRIVER EVALUATION BOARD GUIDE
Integrated Silicon Solution, Inc. – www.issi.com
9
Rev. A, 09/18/2017
Wire.endTransmission(); // stop transmitting
}
void Init_3216A(void)
{
uint8_t i = 0;
IS_IIC_WriteByte(Addr_GND,0x01,0xff);//turn on out9~16
IS_IIC_WriteByte(Addr_GND,0x02,0xff);//turn on out1~8
for(i=0x10;i<0x20;i++)
{
IS_IIC_WriteByte(Addr_GND,i,0x00);//write all PWM set 0x00
}
IS_IIC_WriteByte(Addr_GND,0xB0,0x00);//update
IS_IIC_WriteByte(Addr_GND,0x00,0x00);//normal operation
}
void IS31FL3216A_mode1(void)//All LED Breath
{
uint8_t i = 0;
int8_t j = 0;
for (j=0;j<127;j++)//all LED breath
{
for(i=0x10;i<0x20;i++)
{
IS_IIC_WriteByte(Addr_GND,i,pgm_read_byte_near(&PWM_Gama64[j]));//set all PWM
}
IS_IIC_WriteByte(Addr_GND,0xB0,0x00);//update
delay(20);//20ms
}
}