Hello everyone, I've been having issues trying to get my MP3 Shield working simultaneously with my 8x8 Neopixel RGB Matrix. I have 3 buttons connected to Analog pins 0-2 in order to control the "Play track", "Next Track", and "Stop track" commands. In addition to this, I've connected another button to I/O pin 5 in order to change patterns on the LED Matrix. I'm pretty sure the connection are fine, however I'm sure that the coding has one flaw that doesn't yield a normal error.In order to write the code, I basically combined two example sketches that were included with the NeoPixel and SFEMP3Shield libraries. In the MP3Shield code, there is a line that goes as follows:
#if defined(USE_MP3_REFILL_MEANS)
&& ( (USE_MP3_REFILL_MEANS == USE_MP3_SimpleTimer)
|| (USE_MP3_REFILL_MEANS == USE_MP3_Polled) )
I feel like that line is what is causing the issue. When I delete it and its "#endif" line, I can control the LEDs without issue but cannot control the music. When the line is included, the LEDs stay off but the music can be controlled without issue. Can anyone look at my code and maybe suggest to me a few changes or alternatives?
I attached a copy of the .ino file.
MP3_LEDProject.ino (6.78 KB)