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.
Fork of C12832_lcd by
Revision 19:23a26a1668cf, committed 2016-07-28
- Comitter:
- Sateg
- Date:
- Thu Jul 28 22:16:43 2016 +0000
- Parent:
- 18:672450caf175
- Commit message:
- Added printing full screen image.
Changed in this revision
| DOGL128.cpp | Show annotated file Show diff for this revision Revisions of this file |
| DOGL128.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/DOGL128.cpp Tue Jul 19 23:20:36 2016 +0000
+++ b/DOGL128.cpp Thu Jul 28 22:16:43 2016 +0000
@@ -543,7 +543,7 @@
for(v=0; v < bm.ySize; v++) { // lines
for(h=0; h < bm.xSize; h++) { // pixel
if(h + x > 127) break;
- if(v + y > 31) break;
+ if(v + y > 63) break;
d = bm.data[bm.Byte_in_Line * v + ((h & 0xF8) >> 3)];
b = 0x80 >> (h & 0x07);
if((d & b) == 0) {
@@ -553,7 +553,10 @@
}
}
}
-
}
+void DOGL128::print_logo(const unsigned char* data)
+{
+ memcpy(buffer, data, 1024);
+}
--- a/DOGL128.h Tue Jul 19 23:20:36 2016 +0000
+++ b/DOGL128.h Thu Jul 28 22:16:43 2016 +0000
@@ -235,8 +235,10 @@
* @param y y start
*
*/
-
void print_bm(Bitmap bm, int x, int y);
+
+ /// Fill buffer with preset array
+ void print_logo(const unsigned char* data);
protected:
