Richard Parker / EALCD
Revision:
1:f04bcaea1d60
Parent:
0:839ecbf5cb2a
Child:
3:24fbf4dbd7e5
diff -r 839ecbf5cb2a -r f04bcaea1d60 screen/EALCD.cpp
--- a/screen/EALCD.cpp	Thu Feb 11 12:21:18 2010 +0000
+++ b/screen/EALCD.cpp	Thu Mar 04 10:54:06 2010 +0000
@@ -604,6 +604,8 @@
     EAFont::EACharacter detail;
       
     img.load(_font.path());
+    // Treat the font image as a mask to allow pen colour to be used for the text.
+    img.setMask(true);
 
     for (int i = 0; i < strlen(text); i++)
     {
@@ -619,3 +621,17 @@
         }      
     }  
 }
+
+void EALCD::noop()
+{
+    // Turn off the mask so that nothing written.
+    _writeToRegister(0x23, 0xfcfc);
+    _writeToRegister(0x24, 0x00fc);
+    
+    // Write blank to increment address.
+    _writeToDisplay(0x0000);
+    
+    // Turn mask back on.
+    _writeToRegister(0x23, 0x0000);
+    _writeToRegister(0x24, 0x0000);
+}