Home › Forums › Sparkfun MP3 Shield Library Support Forum › Problem with ElecFreaks MP3 Shield (Seeeduino compatible) › Reply To: Problem with ElecFreaks MP3 Shield (Seeeduino compatible)
May 8, 2014 at 3:24 pm
#3167
Michael P. Flaga
Member
To the following file
SFEMP3ShieldConfig.h
append the following code to it:
#undef MP3_XCS #undef MP3_XDCS #undef MP3_DREQ #undef MP3_DREQINT #undef MP3_RESET #undef SD_SEL #undef USE_MP3_REFILL_MEANS #define MP3_XCS A3 //Control Chip Select Pin (for accessing SPI Control/Status registers) #define MP3_XDCS A2 //Data Chip Select / BSYNC Pin #define MP3_DREQ A1 //Data Request Pin: Player asks for more data #define MP3_DREQINT //Corresponding INTx for DREQ pin #define MP3_RESET A0 //Reset is active low #define SD_SEL 10 //select pin for SD card #define USE_MP3_REFILL_MEANS USE_MP3_Polled
For a quick test it is simpler to use the #undef to remove any prior pin assignments. And per the schematics/docs I believe the above should work.
Note there DREQ does not land on any IRQ’s, hence the driver needs to run the refill mode as POLLed. Subsequently the MP3_DREQINT is not used.