ECE 2036 Project

Dependencies:   mbed wave_player 4DGL-uLCD-SE

Revision:
2:2042f29de6b7
Parent:
0:cf4396614a79
--- a/globals.h	Wed Nov 08 21:01:43 2017 +0000
+++ b/globals.h	Thu Nov 21 16:10:57 2019 +0000
@@ -32,6 +32,9 @@
 #include "wave_player.h"
 #include "SDFileSystem.h"
 #include "MMA8452.h"
+#include "Speaker.h"
+
+#define ACCELERATION 500
 
 // Hardware declarations. Initialization is in main.cpp
 extern uLCD_4DGL uLCD;      // Screen
@@ -45,9 +48,14 @@
 extern wave_player waver;   // wav player
 extern SDFileSystem sd;     // SD card and filesystem (mosi, miso, sck, cs)
 
+extern DigitalOut redLED;   // Red LED
+extern DigitalOut greenLED;   // Green LED
+extern Speaker speaker;  // Speaker
+
 // Global parameters. Initialized in main.cpp
 extern const float mass;
 extern const int radius;
 extern const float bounce;
+extern int sound;
 
 #endif //GLOBAL_H
\ No newline at end of file