KBrat-SSD541-HW-15-1

Fork of SLCD_minus_mod by Stanley Cohen

Revision:
4:ec7b3c9b2aeb
Parent:
3:f70873bc6121
Child:
5:6e3c11967108
diff -r f70873bc6121 -r ec7b3c9b2aeb SLCD.h
--- a/SLCD.h	Mon Jan 27 21:57:38 2014 +0000
+++ b/SLCD.h	Thu Feb 27 21:57:22 2014 +0000
@@ -18,7 +18,9 @@
         slcd.Colon(y);          // y=1 for on, 0 for off
         slcd.CharPosition=x;    // x=0 to 3, 0 is start position
         slcd.Home();            // sets next charater to posistion 0 (start)
-        slcd.Contrast (x);      // set contrast x=0 - 15, 0 lightest, 15 darkest    
+        slcd.Contrast (x);      // set contrast x=0 - 15, 0 lightest, 15 darkest
+        slcd.blink(x);          // set display to blink, 0-7 is blink rate (default = 3), -1 disables blink
+        slcd.deepsleepEnable(x);// true (default) keeps the lcd enabled in deepsleep, false disables its 4MHz internal oscillator clock. Total power consumption ~= 40uA
     }   
 */
 
@@ -26,7 +28,7 @@
     public:
     SLCD();
     
-    void init();
+    
     void Write_Char(char lbValue);
     void Home (void);
     void Contrast (uint8_t lbContrast);
@@ -36,7 +38,11 @@
     void DP3 (int);
     void Colon (int);     
     uint8_t CharPosition;
-         
+    void blink(int blink = 3);
+    void deepsleepEnable(bool enable);
+    
+    private:
+    void init();
     virtual int _putc(int c);
     virtual int _getc() {
         return 0;