RGB LED

In this Arduino circuit, you will wire an RGB led into an Arduino circuit.  An RGB led is ONE led that can deliver 16,777,216 possible colors by mixing red, green and blue.

Here’s the wiring diagram: note that the leg that connects to ground (black wire) is the longer leg.  Use 1000 ohm resistors for the other three legs of the RGB led.

Click here for sample code. 
Copy paste the code into a new Arduino program and upload to your Arduino.  Test out the program to confirm that the color selected matches the color on the led.  Use Serial Monitor to choose the desired color.