- Sat Jan 29, 2011 10:45 pm
#118729
Selenaut,
I feel as if I've come into the middle of a discussion, as I don't have a clear understanding of what you "still don't get".
The usual approach is that you put a momentary switch between a DI pin and either Vcc or GND. You then provide a pull-up (if the switch is to ground) or a pull-down (if the switch is to Vcc) between the switch and the DI pin or use an internal pull-up or pull-down. When the switch is not pushed, the pull-up or pull-down provides the voltage seen by the DI. When the switch is pushed, the Vcc or GND is what the DI sees.
Also, you should read the material on "debounce' on the Arduino site.
Happy Hunting,
Eric