Example program for the SSH1106 library, written for LPC1768 and tested with a 1.3" 128x64 OLED LCD.

Dependencies:   SSH1106 mbed

Revision:
1:fee9be359627
Parent:
0:160d9ed96c23
--- 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);