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: Engine/Engine.h
- Revision:
- 1:a14415de3ad5
- Child:
- 2:9ca5e1c221c3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Engine/Engine.h Mon Apr 16 09:07:17 2018 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" +#include "Snek.h" + +class Engine +{ + +public: + Engine(); + ~Engine(); + + void init(); + void read_input(Gamepad &pad); + void update(Gamepad &pad); + void draw(N5110 &lcd); + +private: + + Direction _d; + float _mag; + +}; \ No newline at end of file