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.
Diff: main.cpp
- Revision:
- 11:1c5c549ba75e
- Parent:
- 10:0c200ed5973a
- Child:
- 12:1dfc34bc8382
diff -r 0c200ed5973a -r 1c5c549ba75e main.cpp --- a/main.cpp Tue Apr 30 09:32:46 2019 +0000 +++ b/main.cpp Tue Apr 30 09:43:56 2019 +0000 @@ -15,6 +15,7 @@ #include "Gamepad.h" #include "N5110.h" #include "DodgeEngine.h" +#include "Instruction.h" #define PLAYER_WIDTH 14 #define PLAYER_HEIGHT 14 @@ -123,8 +124,8 @@ } } -void instruction() { - while (pad.check_event(Gamepad::A) == false) { +void instructions() { + while (pad.check_event(Gamepad::A_PRESSED) == false) { instruction.write(lcd, pad); } } \ No newline at end of file