An Arduino-based MP3 player with added support for an RGB LED
This uses code from my Arduino MP3 player project, and adds support for an RGB LED. It was built to be used in an electronic module for a child's Ukulele toy. It uses the excellent RGBLed library, the current version of the code requires the improved fork by HPreston which improves the brightness function.
The code requires the OneButton, DFPlayerMini_Fast, FireTimer & default EEPROM libraries. Be sure you have those installed before attempting to compile the sketch.
Buttons 1 and 2 primarily control the MP3 playback. The exception is that when no music is playing, a long press on either will alter the LED brightness. Button 3 changes the colour on a single press, and a double press cycles the LED between colours at random.