Erik van de Coevering
/
SSH1106_OLED
Example program for the SSH1106 library, written for LPC1768 and tested with a 1.3" 128x64 OLED LCD.
Revision 1:fee9be359627, committed 2016-12-19
- Comitter:
- Anaesthetix
- Date:
- Mon Dec 19 23:24:18 2016 +0000
- Parent:
- 0:160d9ed96c23
- Commit message:
- Updated sample program with drawing / buffering
Changed in this revision
SSH1106.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 160d9ed96c23 -r fee9be359627 SSH1106.lib --- a/SSH1106.lib Mon Dec 19 15:05:35 2016 +0000 +++ b/SSH1106.lib Mon Dec 19 23:24:18 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/Anaesthetix/code/SSH1106/#3cd0a11a2f91 +https://developer.mbed.org/users/Anaesthetix/code/SSH1106/#ac9efaadd666
diff -r 160d9ed96c23 -r fee9be359627 main.cpp --- a/main.cpp Mon Dec 19 15:05:35 2016 +0000 +++ b/main.cpp Mon Dec 19 23:24:18 2016 +0000 @@ -21,6 +21,7 @@ int n = 6; n = sprintf(str, "01234ABCdefghijk"); while(1) { + ssh1106.drawBitmap(test); wait(1); ssh1106.drawBitmap(einstein); @@ -32,6 +33,14 @@ ssh1106.drawBitmap(copter); wait(1); ssh1106.clear(); + ssh1106.clearBuffer(); + ssh1106.drawbufferLineHor(10, 7, 4, 108); + ssh1106.drawbufferLineVert(62, 7, 55, 4); + ssh1106.update(); + wait(1); + //ssh1106.drawLineVert(62, 10, 40, 4); + //wait(5); + ssh1106.clear(); ssh1106.writeText(0,0, font_6x6, str, n); ssh1106.writeText(0,1, font_7x7, str, n); ssh1106.writeText(0,2, bold_font, str, n);