Introduction: How to Make a Fading LED
This project consists of two led lights and it is a more advanced version of https://www.instructables.com/id/How-to-Fade-an-LED-Arduino-Tutorial/. I added another led to this project, using a different color light.
Step 1: Prepare Your Materials
-arduino leonardo x1
-220 Ohm resistor x2
Step 2: Plug the Wires and Led
Plug in the wires as shown above. The led have two pins; the positive end of a led is called anode and it is the longer leg, and the negative which is called cathode is the one with a shorter leg. Plug the longer leg on the bottom and the shorter leg on the top.
Step 3: Code