Hello
I am trying to use Python i2c module with a IR temperature sensor of address 0x5A.
i2cdetect -y 0 detects 0x5a correctly
i2cget -y 0 0x5a 0x06 reads the value of ambient temperature correctly
i2cget -y 0 0x5a 0x07 reads the value of object temperature correctly.
I installed the foll
opkg update
opkg install python-light pyOnionI2C
The expansion and I2C module version is 0.9-1
My code is as follows
import os
from OmegaExpansion import onionI2C
i2c = onionI2C.OnionI2C()
while True:
amb_temp = i2c.readBytes(0x5a, 0x6, 1)
obj_temp = i2c.readBytes(0x5a, 0x7, 1)
print (amb_temp) , (obj_temp)
I keep getting [255],[255]
Request some help in making the python module work.
Thanks
Ajit