I send data from I2CBus to my sensor RFD77402 and i got this problem. I send the value 0x91 at the address 0x04 (Cmd_R) . After i try to read the same address for see if i wrote the correct number and this i what i received. 0x11
Code: Select all
0x11
OK
Code: Select all
self.i2c.writeto_mem(Add,Cmd_R,bytearray([0x91]))
time.sleep_ms(10)
# Only for test
self.i2c.readfrom_mem_into(Add,Cmd_R,buf)
print(hex(buf[0]))
print("ok")
I don't understand where is the mistake someone can help me ?
Thank you
Sergio