| The little ball inside bounces quite vigorously. You will
| need some form of debounce to make them work.
|
| -joe

Way back when, when I was 1st learning to program microprocessors (uP,
not a uC=microcontroller), one of the 1st lab assignments was a
'debounce algorithm'. Basically a little code that could be finished,
and tested, in a 1-hour period. Here are a few links on this important
snippet of code that you should keep in your programming tool kit:

http://www.labbookpages.co.uk/electronics/debounce.html
http://www.ganssle.com/debouncing.htm
http://hackaday.com/2010/11/09/debounce-code-one-post-to-rule-them-all/

The first link does the best job of a simple and concise explanation.
Them Limeys always seem to be good at explaining things. The 2nd one
is a little more in depth. The 3rd, are of examples that hobbyist have
used.

I had a rant a few years ago, that many (usually cheap) consumer
items, seem to have been made without regard to 'debouncing' the
switch inputs. It seemed that Asian manufacturers where shanghai-ing
poor peasants off the farms, shackling them behind CAD computer, and
whipping them to design hardware & code. If it worked they got fed. If
it didn't they got shot, and a new crop of shanghai-ed peasants took
their place. Of course, none of them had more than a 3rd grade
education. That's roughly equivalent to a Phd here in California.



-- 
You received this message because you are subscribed to the Google Groups 
"neonixie-l" group.
To post to this group, send an 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/neonixie-l?hl=en-GB.

Reply via email to