A class for managing SSD1306 controlled LCD´s (cheap 128x64 models, 0.96'') with more scroll features

Dependents:   2PA2S 2PA2S_v2

Revision:
1:c5cf4ca5939f
Parent:
0:3d84b3bfb794
Child:
2:7f1160c1a741
--- a/ssd1306.h	Wed Oct 25 16:28:07 2017 +0200
+++ b/ssd1306.h	Wed Oct 25 15:56:50 2017 +0000
@@ -90,17 +90,19 @@
     
     int init (void);
     
-    void scroll (void);
+    void scroll (bool refresh=false);
     
-    void putchar (char c);
+    void putchar (char c, bool refresh=false);
     
     void display (void);
     
     void set_contrast (char v);
     
-    void cls (void);
+    void cls (char *bkground=NULL, bool refresh=false);
     
-    void plot (char x, char y, PlotStyle modo);
+    void plot (char x, char y, PlotStyle modo, bool refresh=false);
+    
+    void line (char x0, char y0, char x1, char y1, PlotStyle modo, bool refresh=false);
     
     virtual ~SSD1306 () {
         delete bus;
@@ -120,3 +122,4 @@
 };
 
 #endif
+