Hello,
I've used the for the MCP23XXX interrupts fount here: Adafruit-MCP23017-Arduino-Library/mcp23xxx_interrupt.ino at master · adafruit/Adafruit-MCP23017-Arduino-Library · GitHub
I'd like to be able to detect a switch pressed on the falling edge only and haven't found out how to do it. I assumed it would be some configuration of setupInterrupts() and setupInterruptPin being set to CHANGE and/or LOW, but switching those around haven't worked.
Edit: Instead all I'm getting is that the pin is constantly reading as LOW for the duration of the time that the switch is pressed. The message "Interrupt detected on pin: 1" appears at the rate of the delay in the loop.
The closest thing that I found was this page which uses a depreciated version of the Adafruit MCP23017 library, so it isn't useful to me: https://www.best-microcontroller-projects.com/mcp23017.html
How do I configure the MCP23XXX interrupts so that it only detects a state change on the falling edge? Thanks!