ece4180_team / Mbed 2 deprecated lab3part5

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

Revision:
1:60087ee45d3b
Parent:
0:f531454e4dce
Child:
2:9a28b8d45258
--- a/main.cpp	Mon Oct 10 19:32:51 2022 +0000
+++ b/main.cpp	Thu Oct 13 18:11:15 2022 +0000
@@ -68,9 +68,11 @@
 
 void thread2(void const *args)
 {
-    SongPlayer mySpeaker(p21);
-    mySpeaker.PlaySong(note,duration);
-    Thread::wait(2000);    // wait 0.01s
+    while (true) {
+        SongPlayer mySpeaker(p21);
+        mySpeaker.PlaySong(note,duration);
+        Thread::wait(6000);    // wait 6s
+    }
 }