Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Revision:
9:f6ba53e355a0
Parent:
8:f305ea78b2b1
Child:
10:258a1eca02cc
diff -r f305ea78b2b1 -r f6ba53e355a0 main.cpp
--- a/main.cpp	Tue May 05 16:46:01 2020 +0000
+++ b/main.cpp	Wed May 06 14:37:34 2020 +0000
@@ -29,6 +29,10 @@
 #include "startup.h"
 #include "Front.h"
 
+#ifdef DEBUG
+# include "Debug.h"
+#endif
+
 // Objects
 Gamepad pad;
 N5110 lcd;
@@ -58,12 +62,22 @@
 //volatile int g_upflag=1;
 //volatile int g_downflag=1;
 
+ //volatile extern uint16_t sin_wavtable[1024];
+  //volatile extern double sin_d[1024];
+
+
+    volatile extern uint16_t sin_wavtable[1024];
+    
 int main()
 {
     printf("RUNNING CODE \n");
     start.initialise(lcd,pad); //initialises board and displays start screen
+    
+    #ifdef DEBUG
+        printf("DEBUG COMPILE RUNNING\n");
+        run_LUTs_debug();
+    #endif
     menu.mainmenu(lcd,pad);
-    //Menu.mainmenu(lcd, pad); //generates main menu
     //squareWave(); //generates pulse wave modulated by sin wave
     //sinspeak();
 }