🤖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

    Scheduled Pinned Locked Moved UiFlow 2.0
    1 Posts 1 Posters 298 Views
    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 Offline
      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post