Switch Example
When the button is depressed the Arduino sketch flashes the LED
Hardware Required
- 1 x Arduino Board
- 1 x LED
- 1 x 220 Ohm resistor
- 1 x 10 K Ohm Resistor
- 1 x Switch
- 1 x Solderless breadboard
Schematic
After you build the circuit plug your Arduino board into your computer, start the Arduino IDE, and enter the code below.