Switch Debounce Protection built in?
sciguy
Posts: 48
Does the Basic Stamp 2PE support switch debounce protection built in to the hardware? Or does it have to be accommodated for in the code?
Thanks
Thanks
Comments
That depends…If you’re using the BUTTON command for a single input you can handle debounce through the command. If you’re trying to read the switches some other way you will need to handle debounce. This has been covered in the Stamp Works Manual if you would like an example of debouncing multiple switches. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Here is the code:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support