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.
Diff: Music/Music.cpp
- Revision:
- 6:2ca1516ec1e2
- Parent:
- 5:b9cf407bcc63
- Child:
- 8:21b6d4dbce44
diff -r b9cf407bcc63 -r 2ca1516ec1e2 Music/Music.cpp
--- a/Music/Music.cpp Sat Apr 06 14:42:34 2019 +0000
+++ b/Music/Music.cpp Wed Apr 10 11:03:07 2019 +0000
@@ -17,7 +17,7 @@
_data = data;
_length = length;
- speaker.period(0.00001); // Has to << then 1/sample rate
+ speaker.period(0.00003); // Has to << then 1/sample rate
speaker.write(0); // until music played stay silent
_index = 0;
}
@@ -33,7 +33,7 @@
_index++;
} else {
- printf("%i",_index);
+ _index = 0;
}
}
\ No newline at end of file