Common code for things like debounce
Bruce King
Posts: 12
I have not found much code posted on here for common things like debouncing inputs and monitoring inputs over a preset time period.
Can some of you experts post some of your most commonly used·code to help us new guys get·some ideas to save us debug time?·· thanks!·
Can some of you experts post some of your most commonly used·code to help us new guys get·some ideas to save us debug time?·· thanks!·
Comments
http://www.parallax.com/dl/docs/books/edu/roboticsv2_2.pdf
Also, the Basic Stamp doesn't have interrupts or background timers. So when I monitor inputs I poll them in the servo pulse loop. In theory if an input changes state faster than your sample time you could miss it. But for physical processes most things happen slow enough that this isn't a problem.
Post Edited (Martin_H) : 7/21/2010 1:33:37 AM GMT
Might this help [noparse][[/noparse] Reply #2 dated 25 Apr 09]:
http://www.efx-tek.com/php/smf/index.php?topic=1054.0
cheers, David