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: lib/Controls/Controls.cpp
- Revision:
- 13:94abfe83a294
- Child:
- 19:8400ecdb69e9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Controls/Controls.cpp Wed May 08 19:49:35 2019 +0000 @@ -0,0 +1,33 @@ +/* +ELEC2645 Project +Controls.cpp +Class file for Controls in Donkey Kong game. +*/ + +#include "Controls.h" + +Controls::Controls() +{ + +} + +Controls::~Controls() +{ + +} + +void Controls::controls_run(Gamepad &pad, N5110 &lcd) { + wait_ms(250); + + while (pad.check_event(Gamepad::BACK_PRESSED) == false) { + //printf("Control State"); + lcd.clear(); + lcd.printString("Controls",19,0); + lcd.printString("Move Joystick ",0,2); + lcd.printString("Left or Right ",0,3); + lcd.printString(" to move ",0,4); + lcd.printString(" Donkey Kong ",0,5); + lcd.refresh(); + wait_ms(1.0f/24); + } +} \ No newline at end of file