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.
Diff: N5110.h
- Revision:
- 19:ba8addc061ea
- Parent:
- 18:1af393359298
- Child:
- 21:4cbdc20fea9f
--- a/N5110.h Wed Apr 22 12:41:45 2015 +0000
+++ b/N5110.h Thu Apr 23 18:57:52 2015 +0000
@@ -127,6 +127,7 @@
// x0,y0,x1,y1,type 0-white,1-black,2-dotted
lcd.drawLine(0,0,x,HEIGHT,2);
}
+ lcd.refresh(); // need to refresh screen after drawing lines
wait(5.0);
lcd.clear();
@@ -135,6 +136,7 @@
lcd.drawCircle(WIDTH/2,HEIGHT/2,20,1); // x,y,radius,black fill
lcd.drawCircle(WIDTH/2,HEIGHT/2,10,2); // x,y,radius,white fill
lcd.drawCircle(WIDTH/2,HEIGHT/2,30,0); // x,y,radius,transparent with outline
+ lcd.refresh(); // need to refresh screen after drawing circles
wait(5.0);
lcd.clear();
@@ -144,8 +146,10 @@
lcd.drawRect(10,10,50,30,1); // filled black rectangle
lcd.drawRect(15,15,20,10,2); // filled white rectange (no outline)
lcd.drawRect(2,2,70,40,0); // transparent, just outline
+ lcd.refresh(); // need to refresh screen after drawing rects
- wait(5.0);
+
+ wait(5.0);
lcd.clear();
}