I’d like to use the AttachInterrupt to enter a menu type mode when a button is pressed, interrupting a repeating pattern of LED’s blinking.
The problem I’m having is that the button bounces. I can’t put a delay to wait for teh button to become stable in the function that the interrupt calls, because the bouncing button even causes the delay function to be interrupted.
I’ve read that you can debounce a switch using a schmitt-trigger, but I don’t have any room on my board to add another IC unfortunately.
Is there a hardware or software method I can use to get this interrupt to work reliably?
it seems like it SHOULD be possible with software…
have the interrupt trigger when the button goes LOW and call a function with a delay in it. The delay waits 10MS to make sure that the button is stable LOW, then does some stuff.