Go Down

Topic: Need help reversing a button (Read 602 times) previous topic - next topic



I'm sure there is a simple solution to this but I can't find one. I have an led wired similar to http://arduino.cc/en/Tutorial/Fade. Instead of the LED fading in and out, I want the LED to light up by default and turn off when a button is held in. I know I can do this using code, but I was wondering how to do this using only the 5V and GND pegs.

Any help will be appreciated.


Use a normally-closed switch.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


I knew it was something simple. I did not know those existed.



Let the pushbutton short the LED. This will draw a little bit more current but..........


Go Up