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:
- 7:c67a5c6a874f
- Parent:
- 5:256e5e0b6cd7
- Child:
- 11:c4b740a970f8
--- a/SnakeTail/SnakeTail.h Tue May 19 10:18:14 2020 +0000
+++ b/SnakeTail/SnakeTail.h Thu May 21 13:55:57 2020 +0000
@@ -4,6 +4,7 @@
#include "mbed.h"
#include "Gamepad.h"
#include "N5110.h"
+#include "SnakeHead.h"
class SnakeTail
@@ -13,15 +14,14 @@
SnakeTail();
~SnakeTail();
- void set_length(int length);
- void draw_tail(N5110 &lcd, Vector2D headPos);
+ void update(Vector2D headPos, int length);
+ void draw(N5110 &lcd, int length);
private:
int tailX[];
int tailY[];
- int _length;
};
#endif