Brennon Farmer / Mbed 2 deprecated 4180_Final_Project_Menu_Music

Dependencies:   mbed mbed-rtos 4180Final SDFileSystem

Revision:
7:9b80fb5d53d6
Parent:
6:a7bcb6451a35
Child:
8:5cd90280b90f
--- 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;