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.
Dependencies: mbed
Fork of el17zl by
Diff: Ppl/Ppl.h
- Revision:
- 4:750d3f9b54de
- Child:
- 5:b50ce6160013
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Ppl/Ppl.h Tue Apr 09 08:31:27 2019 +0000
@@ -0,0 +1,27 @@
+#ifndef PPL_H
+#define PPL_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+class Ppl
+{
+
+public:
+ Ppl();
+ ~Ppl();
+ void init(int x0, int y0);
+ void draw(N5110 &lcd);
+ void check();
+ /// accessors and mutators
+ Vector2D get_pos();
+ void set_pos(Vector2D p);
+
+private:
+
+ int _x;
+ int _y;
+};
+#endif
\ No newline at end of file
