🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    I2C OSError [ERRNO 116] ETIMEDOUT

    UiFlow 2.0
    1
    1
    18
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      domisol2
      last edited by

      Hi
      Using CoreS3 + BaseX.
      When running outside of UIFlow2 (in micropython REPL) instructions like :
      i2c.writeto_mem(0x22,0x20,b'\x7f')
      all is working fine
      But when running in UIFlow2,
      Firsttime of writeto_mem is OK but on second time, the program crashes:
      I2C OSError [ERRNO 116] ETIMEDOUT
      This is particularly true if this instruction is inside the main loop()
      def loop():
      global page0, label0, button0,i2c,count
      M5.update()
      count +=1
      if count == 100:
      i2c.writeto_mem(0x22,0x20,b'\x50')
      if count == 10000:
      i2c.writeto_mem(0x22,0x20,b'\x00')
      The program crashes on the second occurence
      IMPORTANT NOTE : This crash only occurs if m5ui.init() is included.
      We have unsuccessfully tried to find a solution.
      Anyone has a clue ?
      thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post