I2C_Keyboard_Interrupt sample is not working.
-
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?
-
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
-
@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.
-
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 -
@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 testHopefully, you will find the solution. Honestly, I have no time to dig further. Good luck.
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