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: rec/rect.cpp
- Revision:
- 9:d217a636c18d
- Parent:
- 7:1964f649676e
- Child:
- 10:ef01b3076040
--- a/rec/rect.cpp Wed Apr 18 00:17:10 2018 +0000 +++ b/rec/rect.cpp Thu Apr 19 23:07:14 2018 +0000 @@ -12,7 +12,7 @@ void rect::init(int x,int y) { //set the rect move speed - rect_speed = 0.7; // default speed + rect_speed = 1; // default speed } void rect::draw(N5110 &lcd) @@ -33,6 +33,7 @@ rect_x-=rect_speed; } else if (d == E) { rect_x+=rect_speed; + } }