Final Submission. I have read and agreed with Statement of Academic Integrity.

Dependencies:   mbed Gamepad N5110 Joystick

Revision:
10:aedca0082855
Parent:
9:a7ea33e6bd82
diff -r a7ea33e6bd82 -r aedca0082855 main.cpp
--- a/main.cpp	Thu May 09 11:36:21 2019 +0000
+++ b/main.cpp	Thu May 09 13:52:41 2019 +0000
@@ -73,15 +73,13 @@
 }
 
 // Protoype menu
-void Menu() {
-    //engine.get_dir(gamepad);    
+void Menu() {  
     game_speed = 0;
     lcd.clear();
     lcd.printString("Select speed",0,0);
     lcd.printString("Slowest: X",0,2);
     lcd.printString("Fastest: B",0,3);
     lcd.refresh(); 
-    
     while(game_speed == 0) {
         engine.get_dir(gamepad);
         if (engine.get_direction() == 2) {
@@ -90,7 +88,6 @@
             game_speed = 2;    
         }
     }
-
     if (game_speed == 1) {
         speed = 0.5;    
     } else if (game_speed == 2) {