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: SnakeTail/SnakeTail.h
- Revision:
- 5:256e5e0b6cd7
- Child:
- 7:c67a5c6a874f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/SnakeTail/SnakeTail.h Thu May 14 12:06:26 2020 +0000
@@ -0,0 +1,28 @@
+#ifndef SNAKETAIL_H
+#define SNAKETAIL_H
+
+#include "mbed.h"
+#include "Gamepad.h"
+#include "N5110.h"
+
+class SnakeTail
+
+{
+
+public:
+
+ SnakeTail();
+ ~SnakeTail();
+ void set_length(int length);
+ void draw_tail(N5110 &lcd, Vector2D headPos);
+
+
+private:
+
+ int tailX[];
+ int tailY[];
+ int _length;
+};
+
+#endif
+
\ No newline at end of file