Looking for IO pin Debounce example

Hi Rhubarb65, I have been using this algorithm for quite a while now with great results:
http://www.kennethkuhn.com/electronics/debounce.c

Please find one example/implementation here:

And the source code is here.

EDIT: if you feel like reading some "science" behind debouncing an input, you can do so here (excellent source of info by the way). I got the method I use from that guide.

2 Likes