Comment by [email protected]:
Score: Positive
General Comment:
Nice new lib. I would suggest a little improvement, though:
This debounce function ignores short pulses, and outputs a signal if a
stable signal has been detected for some time. This is, button presses are
acted upon after a delay which might be noticeable. I prefer to do it the
other way round:
If the input changes, the output changes immediately, too. Now, to not
erroneously act on bouncing contacts, subsequent changes will be ignored
for a while. The delay from pressing a button to seeing the result is at a
minimum then, the user feels instantaneous reaction which is usually
preferrable over a, say, 0.1s 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.