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
I2C and light sensor
Moderator: Benj
- cubitus54
- Flowcode v5 User
- Posts: 110
- Joined: Wed Jun 19, 2013 7:18 am
- Has thanked: 7 times
- Been thanked: 32 times
- Contact:
Re: I2C and light sensor
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)
LumL=MI2C_Receive_Byte(0x0c)
I2C_Master(0)
LumL=MI2C_Receive_Byte(0)
For the last
I2C_Master(0)
LumL=MI2C_Receive_Byte(1)
Flowcode V6.1.2.0(11 05 2015)