Go Down

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

Hello,

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.
Thanks

AWOL

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 knew it was something simple. I did not know those existed.

Thanks!!!

Pelleplutt

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

Pelle

Go Up