You will need the following parts for this tutorial:
- 1x Adafruit IO compatible Feather
- 1x diffused RGB LED - common anode
- 3x 560 ohm resistors
- 4x jumper wires
We will be looking at the LED with the flat side of the LED on the left. If it's hard for you to see which side is the flat side, you can use the long pin as your guide. The long pin will be closer to the flat side of the LED.
We will be using a Feather ESP8266 in this example, but you can adjust the pins in the sketch if you are using a different board. We will need to connect the following pins from the Feather to the resistors and RGB LED:
- Feather pin 4 to one leg of a 560 ohm resistor, and the other leg of the resistor to the first leg (R) of the LED
- Feather 3V to the second leg (3V) of the LED
- Feather pin 5 to one leg of a 560 ohm resistor, and the other leg of the resistor to the third leg (G) of the LED
- Feather pin 2 to one leg of a 560 ohm resistor, and the other leg of the resistor to the fourth leg (B) of the LED
Next, let's look at the example sketch we will be using.
Text editor powered by tinymce.