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.cpp
- Revision:
- 35:2d5931a66fba
- Parent:
- 33:d80e568a2e18
- Child:
- 36:00ebd449b6f3
--- a/N5110.cpp Thu Feb 16 15:58:48 2017 +0000
+++ b/N5110.cpp Tue Mar 07 16:46:13 2017 +0000
@@ -431,4 +431,31 @@
drawLine(x0,y,x0+(width-1),y,type); // draw line across screen
}
}
+}
+
+void N5110::drawGlyph(int x0,
+ int y0,
+ int nx,
+ int ny,
+ int *glyph)
+{
+ printf("Draw Glyph:\n");
+
+ for (int i = 0; i < nx; i++) {
+ for (int j = 0 ; j < ny ; j++) {
+
+ int pixel = *((glyph+i*ny)+j);
+
+ printf("%d,%d = %d\n",i,j,pixel);
+
+ if (pixel) {
+ setPixel(x0+j,y0+i);
+ }
+ else {
+ clearPixel(x0+j,y0+i);
+ }
+
+ }
+ }
+
}
\ No newline at end of file