ELEC2645 (2017/18) / Mbed 2 deprecated el17yw

Dependencies:   mbed

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;
+}
+
+
+