Page 1 of 1

I2C ESP8266

Posted: Tue Jun 25, 2019 2:10 pm
by giants
Hi there ,
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

Re: I2C ESP8266

Posted: Thu Jun 27, 2019 6:26 am
by giants
Sorry guys
never mind it was my mistake

Tank you
Sergio