I've been trying to read the humidity and temperature values from the Si7021 adafruit packaged sensor with smbus with little success.
https://www.silabs.com/documents/public ... 21-A20.pdf
This is the datasheet. I can successfully read the user register using a read byte data function but I cant read the humidity values with a read word data.
transaction is: S, Slave add, W, [A], Measure command, [A], Sr, Slave add, r, [NA*], Sr, Slave address, r, [A], [MS Byte], a, [LS Byte], NA, P
*Note: Device will NACK the slave address byte until conversion is complete.
[ ] = slave
Now I'm not sure if this is because my RPi isnt doing the repeated start
transactions. I'm on a RPi 3 model b with all the latest software.
I run my programs with python3 so should I install python3-smbus rather than the standard library
I'm probably getting terms a little confused but I've had a real good go at trying the different SMbus commands to try and get this thing working!