ELEC2645 (2018/19) / Mbed 2 deprecated el17arm

Dependencies:   mbed

Revision:
0:fe19852199d2
Child:
1:813ba5341985
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Minerengine.h	Tue Mar 19 09:49:12 2019 +0000
@@ -0,0 +1,57 @@
+#ifndef MINERENGINE_H
+#define MINERENGINE_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+const int miner_right[65] =   {
+        0,0,0,1,1,
+        0,1,1,1,1,
+        0,1,0,1,0,
+        0,1,1,1,1,
+        0,1,1,1,0,
+        0,0,1,0,0,
+        1,1,1,1,1,
+        1,1,1,1,1,
+        1,1,1,1,1,
+        0,1,1,1,0,
+        0,1,0,1,0,
+        0,1,1,1,1,
+    };
+
+    const int miner_left[65] =   {
+        1,1,0,0,0,
+        1,1,1,1,0,
+        0,1,0,1,0,
+        1,1,1,1,0,
+        0,1,1,1,0,
+        0,0,1,0,0,
+        1,1,1,1,1,
+        1,1,1,1,1,
+        1,1,1,1,1,
+        0,1,1,1,0,
+        0,1,0,1,0,
+        1,1,1,1,0,
+    };
+
+
+class Minerengine
+{
+
+public:
+    
+    Minerengine();
+    void minermove(N5110 &lcd, Gamepad &pad);
+    void read_direction(Gamepad &pad);
+    
+    
+private:
+
+    int x_direction;
+    int y_direction;
+    int _d;
+
+    
+};
+#endif
\ No newline at end of file