Introduction: Controlling LED by Using Button

Using button to control LED on / off.

Supplies

-Arduino Leonardo board * 1

- USB cable * 1

- Resistor (10kΩ) * 1

-LED * 1 - Button * 1

- Capacitor 104 * 1

-Breadboard * 1

-Jumper wires

Step 1: Prepare All the Supplies You Will Need

Step 2: Procedures

Step 1: Build the circuit.

Step 2: Download the code from: https://github.com/primerobotics/Arduino

Step 3: Upload the sketch to the Arduino board.

Source of inspiration: https://www.instructables.com/Controlling-LED-by-B...

Step 3: The Code

Step 4: Result!!