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

    I2C_Keyboard_Interrupt sample is not working.

    Scheduled Pinned Locked Moved Arduino
    5 Posts 2 Posters 10.2k Views 2 Watching
    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.
    • liemphL Offline
      liemph
      last edited by

      I have tried the example provided by the M5Stack namely "I2C_Keyboard_Interrupt.ino" and it does not work. I tried the non-interrupt version "I2C_Keyboard.ino" and it works well. The hardware I use is FACES core and Game Boy Keyboard.

      Does any other member also experience this issue?

      1 Reply Last reply Reply Quote 0
      • E Offline
        ecasti
        last edited by

        Same issue for me, tried to debug in some way, it seem at same point M5Stack ignore any interrupt from keyboard. Same behaviour on all faces

        liemphL 1 Reply Last reply Reply Quote 0
        • liemphL Offline
          liemph @ecasti
          last edited by

          @ecasti said in I2C_Keyboard_Interrupt sample is not working.:

          Same issue for me, tried to debug in some way, it seem at same point M5Stack ignore any interrupt from keyboard. Same behaviour on all faces

          I think without using an interrupt we have to live with a blocking code and it would be inefficient code.

          1 Reply Last reply Reply Quote 0
          • E Offline
            ecasti
            last edited by

            According to several forum, Wire library require interrupt itself while any further interrupt is disabled during ISR call , so this example cannot work .
            Only way to make working should be moving outside wire.read() function inside a proper function registered on Wire.onReceive call ( that i'm pretty sure get called from a proper interrupt ).
            will make some test

            liemphL 1 Reply Last reply Reply Quote 0
            • liemphL Offline
              liemph @ecasti
              last edited by

              @ecasti said in I2C_Keyboard_Interrupt sample is not working.:

              According to several forum, Wire library require interrupt itself while any further interrupt is disabled during ISR call , so this example cannot work .
              Only way to make working should be moving outside wire.read() function inside a proper function registered on Wire.onReceive call ( that i'm pretty sure get called from a proper interrupt ).
              will make some test

              Hopefully, you will find the solution. Honestly, I have no time to dig further. Good luck.

              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