ELEC2645 (2018/19) / Mbed 2 deprecated ll16o2l_ELEC2645

Dependencies:   mbed Gamepad

Committer:
ll16o2l
Date:
Thu May 09 12:07:40 2019 +0000
Revision:
18:6ef07bf7770a
Parent:
15:807eba7c7811
Just documentation error, fixed.; ; Statement of academic integrity agreed to.

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 18:6ef07bf7770a 8 /** Instructions Class
ll16o2l 15:807eba7c7811 9
ll16o2l 15:807eba7c7811 10 @brief Stores the instruction message and then writes it to the LCD.
ll16o2l 15:807eba7c7811 11
ll16o2l 15:807eba7c7811 12 @brief Revisions 1.0
ll16o2l 15:807eba7c7811 13
ll16o2l 15:807eba7c7811 14
ll16o2l 15:807eba7c7811 15 @author Oliver Luong, University of Leeds
ll16o2l 15:807eba7c7811 16 @date 06/05/2019
ll16o2l 13:700ea0742b24 17 */
ll16o2l 15:807eba7c7811 18
ll16o2l 9:99287b26be1e 19 class Instruction
ll16o2l 9:99287b26be1e 20 {
ll16o2l 9:99287b26be1e 21 public:
ll16o2l 15:807eba7c7811 22 /** Contructor / Destructor */
ll16o2l 9:99287b26be1e 23 Instruction();
ll16o2l 9:99287b26be1e 24 ~Instruction();
ll16o2l 15:807eba7c7811 25
ll16o2l 15:807eba7c7811 26 // Methods
ll16o2l 15:807eba7c7811 27 /**
ll16o2l 15:807eba7c7811 28 This method will be used to initialise the value y.
ll16o2l 15:807eba7c7811 29 */
ll16o2l 12:1dfc34bc8382 30 void init();
ll16o2l 15:807eba7c7811 31
ll16o2l 15:807eba7c7811 32 /**
ll16o2l 15:807eba7c7811 33 This method will be used to read the jostick and then to change the value of y.
ll16o2l 15:807eba7c7811 34 */
ll16o2l 12:1dfc34bc8382 35 void write(N5110 &lcd);
ll16o2l 15:807eba7c7811 36
ll16o2l 15:807eba7c7811 37 /**
ll16o2l 15:807eba7c7811 38 This method will be used to write to the lcd.
ll16o2l 15:807eba7c7811 39 */
ll16o2l 12:1dfc34bc8382 40 void control(Gamepad &pad);
ll16o2l 9:99287b26be1e 41
ll16o2l 9:99287b26be1e 42 private:
ll16o2l 12:1dfc34bc8382 43 Direction d;
ll16o2l 15:807eba7c7811 44
ll16o2l 15:807eba7c7811 45 // Variables
ll16o2l 9:99287b26be1e 46 int y;
ll16o2l 11:1c5c549ba75e 47 int max_length;
ll16o2l 9:99287b26be1e 48
ll16o2l 11:1c5c549ba75e 49 };
ll16o2l 9:99287b26be1e 50
ll16o2l 9:99287b26be1e 51 #endif