ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Revision:
12:1dfc34bc8382
Parent:
11:1c5c549ba75e
diff -r 1c5c549ba75e -r 1dfc34bc8382 main.cpp
--- a/main.cpp	Tue Apr 30 09:43:56 2019 +0000
+++ b/main.cpp	Sun May 05 11:19:38 2019 +0000
@@ -34,6 +34,7 @@
 Gamepad pad;
 DodgeEngine dodge;
 Instruction instruction;
+Direction d;
 
 ///////////// prototypes ///////////////
 void init();
@@ -125,7 +126,9 @@
 }
 
 void instructions() {
+    instruction.init();
     while (pad.check_event(Gamepad::A_PRESSED) == false) {
-        instruction.write(lcd, pad);
+        instruction.write(lcd);
+        instruction.control(pad);
     }
 }
\ No newline at end of file