Switch and LED circuit with Arduino
Jump to navigation Jump to search
This example shows how to read a switch using the Arduino and blink an LED in response. This is one of the simplest examples of the input -> process -> output model of interaction mentioned by Crawford in "The Art of Interactive Design".
- How would you modify the circuit (without altering the code) so that the LED was turned on by default, and only went off when someone pressed the switch?