Display text on LCD displays (even on multiple ones). Allow to create windows (frames) on display, and to combine them (split, add, duplicate, scroll). See http://mbed.org/users/hlipka/notebook/lcdwindow/ for more information.

Dependents:   Mbell

Revision:
9:2fe93daa2106
Parent:
8:ba176eea3e40
--- a/sed1335text.cpp	Mon Jan 10 22:57:59 2011 +0000
+++ b/sed1335text.cpp	Tue Feb 22 22:57:44 2011 +0000
@@ -38,6 +38,9 @@
     int i=0;
     
     int pos=row*getColumns()+column;
+
+    if (!_guard->take())
+        return;
     
     sendCmd(0x46); // set cursor addr
     sendData(LOW(pos)); 
@@ -48,6 +51,7 @@
         sendData(text[i]);
         i++;
     }
+    _guard->release();
 }
 
 void SED1335TextLCD::clearBank(int start, int size, int data) {