ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Committer:
ll16o2l
Date:
Tue Apr 30 09:43:56 2019 +0000
Revision:
11:1c5c549ba75e
Parent:
9:99287b26be1e
Child:
12:1dfc34bc8382
Fixed the bugs with private and public variables as well as naming conventions of the buttons.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ll16o2l 9:99287b26be1e 1 #ifndef INSTRUCTION_H
ll16o2l 9:99287b26be1e 2 #define INSTRUCTION_H
ll16o2l 9:99287b26be1e 3
ll16o2l 9:99287b26be1e 4 #include "mbed.h"
ll16o2l 9:99287b26be1e 5 #include "N5110.h"
ll16o2l 9:99287b26be1e 6 #include "Gamepad.h"
ll16o2l 9:99287b26be1e 7
ll16o2l 9:99287b26be1e 8
ll16o2l 9:99287b26be1e 9 class Instruction
ll16o2l 9:99287b26be1e 10 {
ll16o2l 9:99287b26be1e 11 public:
ll16o2l 9:99287b26be1e 12 Instruction();
ll16o2l 9:99287b26be1e 13 ~Instruction();
ll16o2l 11:1c5c549ba75e 14 void write(N5110 &lcd, Gamepad &pad);
ll16o2l 9:99287b26be1e 15
ll16o2l 9:99287b26be1e 16 private:
ll16o2l 11:1c5c549ba75e 17 void control(Direction d);
ll16o2l 9:99287b26be1e 18
ll16o2l 9:99287b26be1e 19 int move_up;
ll16o2l 9:99287b26be1e 20 int move_down;
ll16o2l 9:99287b26be1e 21 int y;
ll16o2l 11:1c5c549ba75e 22 int max_length;
ll16o2l 9:99287b26be1e 23
ll16o2l 11:1c5c549ba75e 24 };
ll16o2l 9:99287b26be1e 25
ll16o2l 9:99287b26be1e 26 #endif