PDA

View Full Version : VEML6040 I2C sensor problem



nickw
- 13th February 2018, 13:35
Hello,

Wondering if anyone has used the Vishay VEML6040 color sensor with I2C interface. I am having trouble reading it and think it might be related to the fact that you need to send a command code byte followed by a read without a stop bit after the command code byte. Here is the format.

StartBit-SlaveAddress-WriteBit-Ack-CommandByte-Ack-StartBit-SlaveAddress-ReadBit-Ack-DataByteL-Ack-DataByteH-Ack-StopBit

Is this possible to do with the built in I2C commands?

richard
- 14th February 2018, 02:40
that's what they are for

nickw
- 14th February 2018, 19:01
Let me try asking it this way...

Will the built in I2C commands allow for a device which needs a repeated start condition in order to read?