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: mbed mbed-rtos 4180Final SDFileSystem
Diff: main.cpp
- Revision:
- 7:9b80fb5d53d6
- Parent:
- 6:a7bcb6451a35
- Child:
- 8:5cd90280b90f
diff -r a7bcb6451a35 -r 9b80fb5d53d6 main.cpp
--- a/main.cpp Mon Apr 27 07:53:39 2020 +0000
+++ b/main.cpp Mon Apr 27 10:36:15 2020 +0000
@@ -55,7 +55,7 @@
music = (unsigned char*) menumusic;
led = 1;
DACout.write(music[sIndx++] / 255.0);
- if(sIndx > 110800) { //120000
+ if(sIndx > 122587) { //120000
sIndx = 0;
led = 0;
}
@@ -578,7 +578,7 @@
uLCD.filled_circle(xPos[i], yPos[i], 2, RED);
}
thread1.start(pot_thread);
- nextsample.attach(&playMenuMusic, 1.0/22000.0);
+ nextsample.attach(&playMenuMusic, 1.0/8000.0); //22000.0
while (1) {
// play music
playMusic = 1;