ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Revision:
11:1c5c549ba75e
Parent:
10:0c200ed5973a
Child:
12:1dfc34bc8382
diff -r 0c200ed5973a -r 1c5c549ba75e main.cpp
--- a/main.cpp	Tue Apr 30 09:32:46 2019 +0000
+++ b/main.cpp	Tue Apr 30 09:43:56 2019 +0000
@@ -15,6 +15,7 @@
 #include "Gamepad.h"
 #include "N5110.h"
 #include "DodgeEngine.h"
+#include "Instruction.h"
 
 #define PLAYER_WIDTH 14
 #define PLAYER_HEIGHT 14
@@ -123,8 +124,8 @@
     }
 }
 
-void instruction() {
-    while (pad.check_event(Gamepad::A) == false) {
+void instructions() {
+    while (pad.check_event(Gamepad::A_PRESSED) == false) {
         instruction.write(lcd, pad);
     }
 }
\ No newline at end of file