AnsweredAssumed Answered

how to control a pca9685 with the frdmkl46z through the internal i2c component

Question asked by Sharom Tovar on Mar 26, 2019
Latest reply on Mar 28, 2019 by Kerry Zhou

this my code 

WAIT1_Waitms(5);
fruit_SelectSlave(0x00);
fruit_SendChar(0x06);
WAIT1_Waitms(5);
fruit_SelectSlave(0x40);
dato[0]=0xFE;
dato[1]=110;
fruit_SendBlock(&dato,2,&ret);
WAIT1_Waitms(5);
dato[0]=0x00;
dato[1]=0x21;
fruit_SendBlock(&dato,2,&ret);
WAIT1_Waitms(5);

Outcomes