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: Head/Head.h
- Revision:
- 4:748b3e0062f6
- Parent:
- 3:beb0cc405b1e
- Child:
- 5:e0f08e8022de
diff -r beb0cc405b1e -r 748b3e0062f6 Head/Head.h --- a/Head/Head.h Wed May 27 16:14:56 2020 +0000 +++ b/Head/Head.h Wed May 27 20:57:21 2020 +0000 @@ -11,15 +11,16 @@ Head(); ~Head(); - void init(int _length, int _speed); + void init(int _x, int _y, int _length, int _speed); void draw(N5110 &lcd); void update(); - void update(Direction d); + void update(Direction d, float mag); Vector2D get_pos(); - + private: Gamepad pad; + int _x; int _y; int _length;