bluetooth
Dependencies: 4DGL-uLCD-SE SDFileSystem_3 mbed-rtos mbed wave_player
Revision 1:60087ee45d3b, committed 21 months ago
- Comitter:
- mus3
- Date:
- Thu Oct 13 18:11:15 2022 +0000
- Parent:
- 0:f531454e4dce
- Child:
- 2:3de25ad12458
- Commit message:
- changes to make the song loop nicely
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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
+ }
}