
Originally Posted by
weirdjim
Somebody said something about switch debounce. Is there a standard debounce code snippet for pushbutton switches? A 50 millisecond delay waiting for the sucker to stop clanging around?
Jim
You can use software debounce ( with Button command ) , but if you dont want to change the code, just put the switch in parallel with a resitor and capacitor, something like this:
Code:
sw
-------_-------
---! !------
--vvv----||----!
R C
Bookmarks