Lewis Cheadle 201245660

Dependencies:   mbed

Revision:
3:4494e6928194
Parent:
2:823dea76ff2e
Child:
4:a9d5fca3b7ba
--- a/main.cpp	Sat May 16 13:06:29 2020 +0000
+++ b/main.cpp	Sat May 16 15:51:02 2020 +0000
@@ -22,19 +22,6 @@
 void welcome();
 void start_menu();
 
-int selector = 1;
-
-int arrow[7][5] = {
-        {0,0,0,0,0},
-        {1,1,0,0,0},
-        {1,1,1,1,0},
-        {1,1,1,1,1},
-        {1,1,1,1,0},
-        {1,1,0,0,0},
-        {0,0,0,0,0},
-};
-    
-
 ///////////// functions ////////////////
 
 int main()
@@ -49,7 +36,7 @@
 
     init();     // initialise and then display welcome screen...
     welcome();  // waiting for the user to start
-    start_menu(); // brings up start menu for user to select option
+    imposs.complete(); // brings up start menu for user to select option
     ball.init(); //initialise ball position
     render();  // first draw the initial frame 
     wait(1.0f/fps);  // and wait for one frame period
@@ -101,4 +88,12 @@
     
 
 
+}
+
+void init()
+{
+    // need to initialise LCD and Gamepad 
+    lcd.init();
+    pad.init();
+
 }
\ No newline at end of file