ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Revision:
12:1dfc34bc8382
Parent:
11:1c5c549ba75e
Child:
13:700ea0742b24
diff -r 1c5c549ba75e -r 1dfc34bc8382 Instuctions/Instruction.h
--- a/Instuctions/Instruction.h	Tue Apr 30 09:43:56 2019 +0000
+++ b/Instuctions/Instruction.h	Sun May 05 11:19:38 2019 +0000
@@ -11,13 +11,12 @@
 public:
     Instruction();
     ~Instruction();
-    void write(N5110 &lcd, Gamepad &pad);
+    void init();
+    void write(N5110 &lcd);
+    void control(Gamepad &pad);
     
 private:
-    void control(Direction d);
-    
-    int move_up;
-    int move_down;
+    Direction d;
     int y;
     int max_length;