case 'N': Serial.println("Normal"); mp3.setEqualizer(MP3_EQ_NORMAL); break;
case 'P': Serial.println("Pop"); mp3.setEqualizer(MP3_EQ_POP); break;
case 'R': Serial.println("Rock"); mp3.setEqualizer(MP3_EQ_ROCK); break;
case 'J': Serial.println("Jazz"); mp3.setEqualizer(MP3_EQ_JAZZ); break;
case 'C': Serial.println("Classic"); mp3.setEqualizer(MP3_EQ_CLASSIC); break;
case 'B': Serial.println("Bass"); mp3.setEqualizer(MP3_EQ_BASS); break;
}
}
return;
case 'l':
{
do
{
while(!Serial.available()); // Wait
b = Serial.read();
if(b != ' ') break; // Allow "e N" or "eN" etc...
} while(1);
Serial.print("Loop ");
switch(b)
{
case 'A': Serial.println("All"); mp3.setLoopMode(MP3_LOOP_ALL); break; // Plays the tracks one after another and repeats
case 'F': Serial.println("Folder"); mp3.setLoopMode(MP3_LOOP_FOLDER); break; // Loop within folder
case 'O': Serial.println("One (repeat playing same file)"); mp3.setLoopMode(MP3_LOOP_ONE); break; // | These seem to do the same, repeat the same track over and over
case 'R': Serial.println("??? - Don't know what it means exactly, in the datasheet it is \"RAM\""); mp3.setLoopMode(MP3_LOOP_RAM); break; //-
case 'N':
case 'S': Serial.println("None (play file and stop)"); mp3.setLoopMode(MP3_LOOP_ONE_STOP); break; // Default, plays track and stops
}
}
return;
case 's':
{
do
{
while(!Serial.available()); // Wait
b = Serial.read();
if(b != ' ') break; // Allow "e N" or "eN" etc...
} while(1);
Serial.print("Source ");
switch(b)
{
case 'S': Serial.println("SD Card (if available)."); mp3.setSource(MP3_SRC_SDCARD); break;
case 'B': Serial.println("on board memory.");mp3.setSource(MP3_SRC_BUILTIN); break;