🤖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.

    Arduino
    2
    5
    8.1k
    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
      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
        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
          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
            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
              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
              • First post
                Last post