did it

Dependencies:   4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player

Files at this revision

API Documentation at this revision

Comitter:
nhardy6
Date:
Thu Oct 13 13:50:57 2016 +0000
Parent:
0:da1bd63907ee
Commit message:
music never stops

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r da1bd63907ee -r 5445ff4fd6a7 main.cpp
--- a/main.cpp	Thu Oct 13 01:30:40 2016 +0000
+++ b/main.cpp	Thu Oct 13 13:50:57 2016 +0000
@@ -108,10 +108,13 @@
     led1 = 1;
     
     FILE *wave_file;
+    
+    while(1) {
     led2 = 1;
     wave_file=fopen("/sd/sample.wav","r");
     led3 = 1;
     waver.play(wave_file);
     led4 = 1;
     fclose(wave_file);
+    }
 }