ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Committer:
ll16o2l
Date:
Tue Apr 30 09:27:09 2019 +0000
Revision:
9:99287b26be1e
Child:
11:1c5c549ba75e
Writing instructions to be displayed on the lcd.

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 9:99287b26be1e 14
ll16o2l 9:99287b26be1e 15 private:
ll16o2l 9:99287b26be1e 16 void control(Gamepad &pad);
ll16o2l 9:99287b26be1e 17 void write(N5110 &lcd, Gamepad &pad);
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 9:99287b26be1e 22
ll16o2l 9:99287b26be1e 23 }
ll16o2l 9:99287b26be1e 24
ll16o2l 9:99287b26be1e 25 #endif