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
Head/Head.h
- Committer:
- el18lg
- Date:
- 2020-05-28
- Revision:
- 5:e0f08e8022de
- Parent:
- 4:748b3e0062f6
- Child:
- 9:f3259d652208
File content as of revision 5:e0f08e8022de:
#ifndef HEAD_H #define HEAD_H #include "mbed.h" #include "Gamepad.h" #include "N5110.h" class Head { public: Head(); ~Head(); void init(int _x, int _y, int _length, int _speed); void draw(N5110 &lcd); void update(); void update(enum Direction d, float mag); Vector2D get_pos(); private: Gamepad pad; int _x; int _y; int _length; int _speed; }; #endif