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@11:1c5c549ba75e, 2019-04-30 (annotated)
- 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?
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 | 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 |