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 wave_player mbed-rtos 4180Final SDFileSystem
Diff: main.cpp
- Revision:
- 7:65216abe57c3
- Parent:
- 5:1e8b48d6682b
diff -r 1e8b48d6682b -r 65216abe57c3 main.cpp
--- a/main.cpp Mon Apr 27 20:35:13 2020 +0000
+++ b/main.cpp Wed Apr 29 00:00:16 2020 +0000
@@ -11,6 +11,7 @@
#include "fireflies.h"
#include "wave_player.h"
#include "rtos.h"
+#include "menumusic.h"
Nav_Switch myNav(p9, p6, p7, p5, p8); //pin order on Sparkfun breakout
uLCD_4DGL uLCD(p28, p27, p30); // serial tx, serial rx, reset pin;
@@ -53,10 +54,10 @@
// Method for ticker for sound
void playMenuMusic() {
if (playMusic) {
- music = (unsigned char*) fireflies;
+ music = (unsigned char*) menumusic;
led = 1;
DACout.write(music[sIndx++] / 255.0);
- if(sIndx > 120000) {
+ if(sIndx > 79420) {
sIndx = 0;
led = 0;
}