Fading RGB LED
This code and diagram will help Arduino users realize the full potential of their RGB LED and several pushbuttons.
- Arduino Uno
- Jumper Wire
- 2 Pushbuttons
- 2 10K Resistors
- RGB LED
All available through adafruit.com
- Wire the circuit according to the diagram.
- Upload the code to the Arduino.
- The first pushbutton changes the LED color. Push this to switch between blue, red, green, pink, and lavendar.
- The second pushbutton changes the intensity of the LED's pulsing. Push this to switch between fast and slow pulsations.
Tutorial for additional help:
Video describing the change in the LEDs color: