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: Doodler/Doodler.h
- Revision:
- 16:e0542761fc8c
- Parent:
- 15:4efa04a6a376
- Child:
- 17:74de8c17ddac
--- a/Doodler/Doodler.h Tue Apr 23 23:14:06 2019 +0000
+++ b/Doodler/Doodler.h Wed Apr 24 10:33:39 2019 +0000
@@ -11,7 +11,7 @@
~Doodler();
void init(int radius, float position_x, float position_y, double velocity_y);
void draw(N5110 &lcd);
- void update(Direction d, float mag);
+ void update(Direction d, float mag, bool button_Y);
float get_velocity_x();
double get_velocity_y();
float get_position_x();
@@ -21,6 +21,7 @@
private:
+
int _radius;
// since the velocity will be added, it will not be an integer so it cannot be a vector
float _position_x;