Hello,
I found some I2C examples from Cypress.
But, I don't understand how to use it.
Here are some codes from example.
//Open the device at deviceNumber
rStatus = CyOpen (deviceNumber, interfaceNum, &cyHandle);
if (rStatus != CY_SUCCESS)
{
printf ("I2C Device open failed...\n");
return rStatus;
}
I believe that the I2C is successfully opened because this function returns CY_SUCCESS as 'rStatus',
Then I used 'CyI2cWrite (cyHandle, &cyI2CDataConfig, &cyDatabuffer, 5000)'
in order to change the mode of projector from 'Splash' to 'Test Patterns',
but this function returns 'CY_ERROR_I2C_DEVICE_BUSY'.
Can I have some codes to solve this problem?
Thanks,