Richard Parker / EALCD
Revision:
4:f8f7f4f9c58d
Parent:
3:24fbf4dbd7e5
Child:
6:4fe6f365cbeb
--- a/screen/EALCD.cpp	Wed Mar 31 22:22:21 2010 +0000
+++ b/screen/EALCD.cpp	Mon Apr 26 21:37:54 2010 +0000
@@ -19,7 +19,8 @@
     _comm(LCD_SI, LCD_SO, LCD_SCL),
     _rs(LCD_RS),
     _cs(LCD_CS),
-    _tch_cs(TCH_CS)
+    _tch_cs(TCH_CS),
+    _maxBright(0.4)
 {
     // Make sure not selecting either chip.
     _cs = 1;
@@ -27,8 +28,8 @@
     
     // Set the frequency of the PWM backlight to have a period ~400us.
     _backlight.period_us(400);
-    // By default 40% on.
-    setBrightness(0.4);
+    // By default fully on.
+    setBrightness(maxBrightness());
     
     // Set up comms, 8 bit interface.
     _comm.format(8);