contains my game for the embedded systems project 2645

Dependencies:   mbed FXOS8700CQQQ

Revision:
33:24ef796ff2c8
Parent:
32:e5d997d2ed79
Child:
39:822b66b1c935
--- a/main.cpp	Mon Apr 29 17:34:37 2019 +0000
+++ b/main.cpp	Fri May 03 00:27:52 2019 +0000
@@ -12,6 +12,7 @@
 #include "tests.h"
 
 // objects 
+// create object and specifiy pins
 FXOS8700CQ devicee(I2C_SDA,I2C_SCL);
 //instantiating the Gamepad object 
 Gamepad pad;
@@ -73,11 +74,11 @@
 //      test.test_InstructionsMenu(pad,lcd);
 //      test.test_Game_Loop(pad,lcd);
    
-    menus.welcomeMenu(pad,lcd);
-    menus.loading_menu(lcd);
-    pad.leds_off();
-    
-    while(1){
+    menus.welcomeMenu(pad,lcd);//displays the welcome menu
+    menus.loading_menu(lcd);//displays the loading menu next
+    pad.leds_off();//turns off the leds
+    //calls the drawMenu which has the main menus and the game loop
+    while(1){ //infinite loop
     menus.drawMenu(lcd,pad);
     }