Simple AVR Button Debounce

14 Jan

I needed a simple debounce for a push button wired directly to a digital input on an ATMega.  I’m sure there are more advanced techniques but this is working well for me.

Where bit_is_clear is defined in AVR-LIBC IO.H … Read More »