Brennon Farmer / Mbed 2 deprecated 4180_Final_Project_Menu_Music

Dependencies:   mbed mbed-rtos 4180Final SDFileSystem

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;