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:
- 6:a7bcb6451a35
- Parent:
- 4:e060ee6a74b5
- Child:
- 7:9b80fb5d53d6
--- a/main.cpp Mon Apr 27 06:16:47 2020 +0000 +++ b/main.cpp Mon Apr 27 07:53:39 2020 +0000 @@ -55,7 +55,7 @@ music = (unsigned char*) menumusic; led = 1; DACout.write(music[sIndx++] / 255.0); - if(sIndx > 20000) { //120000 + if(sIndx > 110800) { //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/8000.0); + nextsample.attach(&playMenuMusic, 1.0/22000.0); while (1) { // play music playMusic = 1;