C12832 by dreschpe modified to work with the DOGL128-6 LCD Display (ST7565R based)

Dependents:   DOGL128Test

Fork of C12832_lcd by Peter Drescher

Revision:
16:3b6865c11663
Parent:
15:2e1423772e77
Child:
17:ec5db47782a3
--- a/DOGL128.h	Sat Jul 16 20:43:50 2016 +0000
+++ b/DOGL128.h	Sat Jul 16 21:30:38 2016 +0000
@@ -285,16 +285,10 @@
     
         @param page_number Page to write to.
     */
-    void write_to_page(uint8_t page_number);
-
-    unsigned int orientation;
-    unsigned int char_x;
-    unsigned int char_y;
-    unsigned char buffer[1024];
-    unsigned int contrast;
-    unsigned int auto_up;
+    void write_to_page(uint8_t page_number);    
     
-    static const uint8_t kPageCount = 8;
+    /// clear the display buffer
+    void clear_buffer();
     
     // commands values
     enum Display {
@@ -326,8 +320,19 @@
         kStaticIndicatorOn = 0xAD
     };
     
+    static const uint8_t kPageCount = 8;
+    static const uint8_t kPageSize = 128;
     static const uint8_t kReset = 0xE2;
     static const uint8_t kSetContrast = 0x81;
+    
+    
+
+    unsigned int orientation;
+    unsigned int char_x;
+    unsigned int char_y;
+    unsigned char buffer[kPageSize * kPageCount];
+    unsigned int contrast;
+    unsigned int auto_up;
 };
 
 #endif /* DOGL128_H */