I'm new on PSoC and I got a problem of communication between a light sensor TSL2561 and my PSoC 5
(here the doc of the sensor : https://cdn-shop.adafruit.com/datasheets/TSL25911_Datasheet_EN_v1.pdf )
I can see the buffer on the debug mode but theres are empty, and my sensor don't write his data inside. The datasheet of the sensor talk about perform a four-byte I2C read operation using the auto-increment in the page 17, but I don't understand what is this.
My code :
#define TSL_ADDR 0x29
So what I have to add in my code, for read the light sensor's data.
Look into datasheet how the scl pin should be configured: Open drain, drives low.
Keep in mind that the APIs return a status byte which, when non-zero indicate an error condition.