Comment by [email protected]:

Score: Neutral

General Comment:
True, my suggested algorithm is only suitable for mechanical switches. But then, this is what "bouncing" comes from. For "denoising", this might be less suited, that's true. If you've got a button on long wires running in a noisy environment, you might need both a denoising with a quick response (depends on the sort of noise) and a debouncing with a long dead-time (10-100ms for common switches).

A bit more documentation might be handy for beginners, e.g. there's no mention that the main function must be called at regular intervals, and there's no example on how to calculate the needed delay.

For more information:
http://code.google.com/p/jallib/source/detail?r=3106

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to