A switch (push button) is connected to the Arduino. When the switch is closed, the LED switches on, when the switch is opened, the LED switches off.
Similar to the DigitalReadSerial project (project 2), but instead of sending the state of the switch to the serial monitor, the state of the switch is displayed on an LED. The Arduino on-board LED is used so no external LED is necessary.
Your new post is loading...