Home › Forums › Sparkfun MP3 Shield Library Support Forum › SFEMP3Sheild not importing › Reply To: SFEMP3Sheild not importing
Your description of the symptom at first is a bit confusing.
The orange and black, sounded you thought they were errors. But really they are just syntax coloring of the Arduino IDE. There are keyword files with special words that are colored. Where the SPI is one, but the others are not. It is only a convenience.
Where I bet the problem you are seeing in the Monitor is as follows:
If you get this error, you likely do not have a sd.begin in the main sketch, See Trouble Shooting Guide! http://mpflaga.github.com/Sparkfun-MP3-Player-Shield-Arduino-Library/#Troubleshooting
If so, I am fairly certain you are seeing a secondary symptom. To the failure of sd.begin.
Note you have replaced
if(!sd.begin(9, SPI_HALF_SPEED)) sd.initErrorHalt();
with
sd.begin(SD_SEL, SPI_HALF_SPEED);
removing the initial detection of SdCard failure and then falling through to a detection for a different problem, when the SdCard is not properly started.
if you replace the one line as mentioned, I suspect you will see the following:
Can't access SD card. Do not reformat. No card, wrong chip select pin, or SPI problem? SD errorCode: 0X1,0X0
Which is self explanatory. See other questions in forum about failed SdCard causes.