debounce problem

Grumpy_Mike:

Have you considered adding a software debounce ?

It is a lot more tricky on an interrupt pin, because the delay is in the ISR which is never a good thing.

Next time I need to read more carefully, I didn't notice the OP was using an interrupt :roll_eyes:

I was wondering whether a simple state machine could be embedded inside the isr to provide a form of software debounce nonetheless...