Thursday, 13 June 2013

29 - Debouncer Solution

When pressing a button the button sends more than one signal.

To fix this you need to check twice in this short period of time if the button was pressed or not in the code, using variables HIGH & LOW.

When pressed, there will be a small delay. If HIGH, the button is pressed and if LOW the button is not pressed at that time.


No comments:

Post a Comment