Page 1 of 1
I2C and light sensor
Posted: Fri Jan 09, 2015 8:04 pm
by cubitus54
Hello,
I do not communicate properly with I2C TSL2561 sensor.
When I read a register, the PIC had to do an ACK, but it does not ...
I can read one register at a time, and I have 10ms "time out" before you can make another attempt.
Do you have an idea of the problem?
thank you
Re: I2C and light sensor
Posted: Sun Jan 11, 2015 6:57 pm
by cubitus54
I2C_Master(0)
LumL=MI2C_Receive_Byte(0x0c)
I2C_Master(0)
LumL=MI2C_Receive_Byte(0)
For the last
I2C_Master(0)
LumL=MI2C_Receive_Byte(1)