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:
- 23:9be87557b89a
- Parent:
- 22:0d2ac98a8b48
- Child:
- 24:67dc71a8f009
diff -r 0d2ac98a8b48 -r 9be87557b89a Doodler/Doodler.h
--- a/Doodler/Doodler.h Mon May 06 11:21:39 2019 +0000
+++ b/Doodler/Doodler.h Wed May 08 08:46:11 2019 +0000
@@ -9,7 +9,7 @@
public:
Doodler();
~Doodler();
- void init(int radius, float position_x, float position_y, double velocity_y);
+ void init(float position_x, float position_y, double velocity_y);
void draw(N5110 &lcd);
void update(Direction d, float mag);
float get_velocity_x();
@@ -20,11 +20,10 @@
void set_position(float pos_x, float pos_y);
void check_rectangle();
void change_pos(Direction d, float mag);
- void check_velocity(double velocity_y);
+ void check_velocity();
private:
- int _radius;
// since the velocity will be added, it will not be an integer so it cannot be a vector
float _position_x;
float _position_y;