AMart_SSD447_light sensor

Dependents:   lightsense_kl46z_PWM_simple_ALM

Fork of SLCD by Erik -

Revision:
6:f4773221794b
Parent:
5:6e3c11967108
Child:
7:0e084b33d730
diff -r 6e3c11967108 -r f4773221794b SLCD.h
--- a/SLCD.h	Thu Feb 27 22:02:34 2014 +0000
+++ b/SLCD.h	Fri Mar 14 15:13:15 2014 +0000
@@ -5,15 +5,15 @@
 
     #include "mbed.h"
     #include "SLCD.h"
-    
+
     SLCD slcd;
-    
+
     main()
     {
         slcd.printf("1234");    // standard printf function, only charaters in ASCII_TO_WF_CODIFICATION_TABLE will display
-        slcd.putc("A");         // prints a single character 
+        slcd.putc("A");         // prints a single character
         slcd.Write_Char('A');   // prints a single character
-        slcd.All_Segments(y);   // y=1 for ALL segments on, 0 for ALL segments off  
+        slcd.All_Segments(y);   // y=1 for ALL segments on, 0 for ALL segments off
         slcd.DPx(y);            // x=DP1 to DP3, y=1 for on 0 for off
         slcd.Colon(y);          // y=1 for on, 0 for off
         slcd.CharPosition=x;    // x=0 to 3, 0 is start position
@@ -21,29 +21,30 @@
         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
-    }   
+    }
 */
 
-class SLCD : public Stream {
-    public:
+class SLCD : public Stream
+{
+public:
     SLCD();
-    
+
     void Home (void);
     void Contrast (uint8_t lbContrast);
-    void All_Segments (int);     
+    void All_Segments (int);
     void DP1 (int);
     void DP2 (int);
     void DP3 (int);
-    void Colon (int);     
+    void Colon (int);
     uint8_t CharPosition;
     void blink(int blink = 3);
     void deepsleepEnable(bool enable);
-    
-    private:
+
+private:
     void Write_Char(char lbValue);
     void init();
     virtual int _putc(int c);
     virtual int _getc() {
         return 0;
-    }  
+    }
 };