I2C ESP8266

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
giants
Posts: 19
Joined: Fri Apr 26, 2019 2:07 pm

I2C ESP8266

Post by giants » Tue Jun 25, 2019 2:10 pm

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

giants
Posts: 19
Joined: Fri Apr 26, 2019 2:07 pm

Re: I2C ESP8266

Post by giants » Thu Jun 27, 2019 6:26 am

Sorry guys
never mind it was my mistake

Tank you
Sergio

Post Reply