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
Diff: engine/engine.h
- Revision:
- 2:421fb0670c5c
- Child:
- 3:1a134243e2f0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/engine/engine.h Thu Apr 12 22:46:30 2018 +0000
@@ -0,0 +1,42 @@
+#ifndef ENGINE_H
+#define ENGINE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "rect.h"
+
+
+#define GAP 2
+class engine
+{
+public:
+ engine();
+ ~engine();
+
+ void init(int rect_height,int speed,int rect_width);
+ void read_input(Gamepad &pad);
+ void update(Gamepad &pad);
+ void draw(N5110 &lcd);
+
+private:
+ rect _rect;
+
+ int _speed;
+ int _recx;
+ int _rect_height;
+ int _rect_width;
+
+
+
+
+ Direction _d;
+ float _mag;
+
+
+};
+
+
+
+
+#endif
\ No newline at end of file