A proper way to use a button and an LED - General Electronics - Arduino Forum

Di uno scrittore di uomini misteriosi

Descrizione

Could somebody please explain the reason the following circuit works "fine" (LED is on if the button is pressed) only if the Pin 12 is in the OUTPUT-mode? I need to be able to digitalRead() the button state (pressed/not pressed) and the LED should be on every time the button is pressed without using two pins (one input and one output). What is the proper way to achieve that?
A proper way to use a button and an LED - General Electronics - Arduino  Forum
What does the LED do to my circuit? - General Electronics - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Conecting 12v rocker switch with LED built-in to arduino pro micro - General Electronics - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Sensing when a push button is pressed on a separate circuit - Project Guidance - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Blink two LEDs with Arduino
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Why do I need a pull down resistor in the button example? - General Electronics - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Solved] Led in series with push button? - General Electronics - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Button not working - General Electronics - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Multiple Buttons on 1 analog pin - Exhibition - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
charge/discharge capacitors - General Electronics - Arduino Forum
A proper way to use a button and an LED - General Electronics - Arduino  Forum
Arduino Use a Button to Toggle an LED - The Geek Pub
A proper way to use a button and an LED - General Electronics - Arduino  Forum
L2: Blinking an LED - Physical Computing
da per adulto (il prezzo varia in base alle dimensioni del gruppo)