Try this method, I already used in my projects and worked fine.
The only issue is that you will need to use a switch with 2 contacts.
http://www.elexp.com/t_bounc.htm
good luck
Try this method, I already used in my projects and worked fine.
The only issue is that you will need to use a switch with 2 contacts.
http://www.elexp.com/t_bounc.htm
good luck
I always use the software method. Polling the pins in a loop or using a Timer interrupt. The timer interrupt will also provide the debouncing delay.
The main advantage of a timer interrupt is that you need ONLY 1 routine, running in background and you button states are available everywhere, when you need.
That's What Ernie suggested too![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks