Lightweight proportional text library for C12832 LCD. Easy to modify, fast, robust and compact. Nice font, good for text driven menus, messages, etc. Fell free to use and modify in any projects.

Dependents:   app-board-lcd128

Documentation will be here later.

Usage sample:

Import programapp-board-lcd128

Sample usage of lightweight C12832 LCD library

Revision:
3:c0e409cda493
Parent:
1:17443d6d2740
Child:
4:1bd241d1fad0
diff -r fdea8ffb3c4f -r c0e409cda493 lcd128lib.h
--- a/lcd128lib.h	Wed Feb 05 00:10:23 2014 +0000
+++ b/lcd128lib.h	Wed Feb 05 00:59:14 2014 +0000
@@ -12,9 +12,9 @@
 // 512 byte total buffer size
 //
  
-#define LCD_X 128
-#define LCD_Y 4
-#define LCD_SIZE 512
+#define LCD_X 128      // In pixels
+#define LCD_Y 4        // In rows by 8 pixels each
+#define LCD_SIZE 512   // In bytes, = LCD_X*LCD_Y
     
 //
 // Proportional font  
@@ -80,7 +80,7 @@
 
     // Buffer -> LCD
     void Update();                          // Update LCD from buffer, shows all actually 
-    void Clear(int row = -1);               // Clear all buffer or one row
+    void Clear(int row = -1);               // Clear all buffer or one concrete row
     
     // Write mode
     void Invert(bool invert = true);        // Switch inverting of chars
@@ -106,7 +106,8 @@
     int StringWidth(char* str);             // Calculate string width in px 
     
     // Higher level drawers
-    void Row(int Y, char* str = "");        // Clear one text row and draw string on it
+    void Row(int Y, char* str = "");        // Clear one text row and draw string on it (left aligned)
+    void RowCenter(int Y, char* str = "");  // Clear one text row and draw string on it (center aligned)
     void Bar(int width, float fill = 0.0);  // Progress bar - one row, width pixels, fill - 0.0..1.0 
 
 };