-
Hi, and that works just fine - but any attempt to get this working with an interrupt fails. my HW setup in polling mode is the 8 pins from the button matrix connected to pins 1-8 of port A. i then also connect the IntA output of my MCP23017 (adafruit breakout board) to ESP PIN 43 and made the following changes to the code:
sadly this did not work. I tried it also with adding an isr function and these two lines:
but this also did not work. again, everything works in polling mode, but i would really love to get this working in interrupt mode thnx in advance for any potential help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
i dunno exactly why, as in the end everything now works perfectly... no ISR routine by me needs to be added, its all handled well by the lib. IoAbstractionRef ioExpander = ioFrom23017(0x20,ACTIVE_LOW_OPEN,43); since i have not really changed my initial approach I assume that maybe the interrupt cable was connected to a wrong pin on the ESP - that is at least the only idea i have why i did not work first, but does now. thnx a million for this great lib! |
Beta Was this translation helpful? Give feedback.
i dunno exactly why, as in the end everything now works perfectly... no ISR routine by me needs to be added, its all handled well by the lib.
IoAbstractionRef ioExpander = ioFrom23017(0x20,ACTIVE_LOW_OPEN,43);
keyboard.initialise(ioExpander, &keyLayout, &myListener, true);
since i have not really changed my initial approach I assume that maybe the interrupt cable was connected to a wrong pin on the ESP - that is at least the only idea i have why i did not work first, but does now.
thnx a million for this great lib!