ControlEverythingCommunity / HDC1000

Humidity and Temperature Sensor
0 stars 1 forks source link

reading hdc1000 temperature & humidity #2

Open karelv opened 4 years ago

karelv commented 4 years ago

https://github.com/ControlEverythingCommunity/HDC1000/blob/80d9141d21ddc549b64cfb1da2253e6b5db39cf6/Python/HDC1000.py#L28

I had to change the line above to:

data1 = bus.read_byte(0x40)

Same for https://github.com/ControlEverythingCommunity/HDC1000/blob/80d9141d21ddc549b64cfb1da2253e6b5db39cf6/Python/HDC1000.py#L45

After that change it works!

karelv commented 4 years ago

I just read #1 ... it is true, I read twice same byte... But the byte is not available at I2C slave address 0x41, that is for sure.

karelv commented 4 years ago

Seems not possible with smbus package... I switched to this driver: https://github.com/switchdoclabs/SDL_Pi_HDC1000 Working!