Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WavPlayer mbed C12832 MSCFileSystem WavPlayerSD
Diff: main.cpp
- Revision:
- 6:ea92f15a3798
- Parent:
- 4:efd586e5c9a7
--- a/main.cpp Sun Apr 14 16:27:52 2019 +0000 +++ b/main.cpp Sun Apr 14 16:42:49 2019 +0000 @@ -4,15 +4,14 @@ #include "math.h" #include "C12832.h" #include "WavPlayer.h" -#include "SDFileSystem.h" +#include "MSCFileSystem.h" #include <string> using namespace std; //Communication\interfaces Serial pc(USBTX,USBRX); //USB serial C12832 lcd(p5, p7, p6, p8, p11); //LCD -SDFileSystem sd(p11, p12, p13, p15, "sd"); //SDCard -DigitalIn sdDetect(p14); //CardDetect +MSCFileSystem msc("USB"); //USB //in- and outputs DigitalIn PauseBtn(p21); @@ -57,7 +56,7 @@ { lcd.cls(); sd.disk_initialize(); - read_file_names("/sd/Music"); + read_file_names("/USB/Music"); while(1) { lcd.locate(0,0); lcd.printf("Please select a song"); @@ -96,7 +95,7 @@ void PlaySong(int m) { string songname = songs[m]; - string a = "/sd/Music/"; + string a = "/USB/Music/"; string fname = a + songname; //retrieves the file name FILE *wave_file; dur.start();