hi there
Source:: \arduino-1.0\libraries\MusicShieldNewSDLib\examples\MusicPlayRandomly\MusicPlayRandomly.ino
#include <Arduino.h>
#include <avr/io.h>
#include "config.h"
#include "player.h"
#include "vs10xx.h"
#include <Fat16.h>
#include <Fat16Util.h>
#include "newSDLib.h"
void setup()
{
Serial.begin(9600);
InitSPI();
InitIOForVs10xx();
InitIOForKeys();
InitIOForLEDs();
Mp3Reset();
if (!initialSDCard())
return;
RED_LED_ON();//light red LED
}
void loop()
{
file.traverseDir("MP3");//find all the .mp3 files in the root directory.
while(1)playFile(); //shuffle your music you find in the root directory of SD card.
}
Is there anyway to print out the full file name which is playing now??
Many thanks