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:
- 5:0a116644cce2
- Parent:
- 3:1a134243e2f0
- Child:
- 6:46d0caedf217
--- a/rec/rect.cpp Mon Apr 16 00:11:15 2018 +0000 +++ b/rec/rect.cpp Mon Apr 16 09:57:57 2018 +0000 @@ -18,7 +18,7 @@ void rect::draw(N5110 &lcd) { - lcd.drawRect(rect_x,rect_y,5,5,FILL_BLACK); + lcd.drawRect(rect_x,rect_y,10,1,FILL_BLACK); } @@ -62,3 +62,12 @@ Vector2D p = {rect_x,rect_y}; return p; } + +void rect::set_pos(Vector2D p) +{ + rect_x = p.x; + rect_y = p.y; +} + + +