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.