Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Instuctions/Instruction.h@15:807eba7c7811, 2019-05-07 (annotated)
- Committer:
- ll16o2l
- Date:
- Tue May 07 18:01:54 2019 +0000
- Revision:
- 15:807eba7c7811
- Parent:
- 13:700ea0742b24
- Child:
- 18:6ef07bf7770a
Re-organised the documentation and finished the project.
Who changed what in which revision?
User | Revision | Line number | New 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 | 15:807eba7c7811 | 8 | /** Health_Kit 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 |