3. Arduino - Turn LED ON and OFF With Button
Turn LED ON and OFF With Button Tutorial
Equipment
- 1x Arduino Uno
- 1x USB 2.0 cable type A/B (for USB-A PC)
- 1x USB 2.0 cable type C/B (for USB-C PC)
- 1x Push Button
- 1x Push Button Module
- 1x breadboard
- 6x Jumper wires
- 1x LED
- 1x 220 Ohm resistor
- 1x 10k Ohm resistor
Project Set-up
Code to turn light on when button is held: