Go Down

Topic: Need help reversing a button (Read 346 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 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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131