]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2005-12-11 14:55:28 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 11 Dec 2005 14:55:28 +0000 (14:55 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 11 Dec 2005 14:55:28 +0000 (14:55 +0000)
contrast range for BWCT is 0..255, not 0..100

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@598 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

drv_BWCT.c
lcd4linux.conf.sample

index 3202c17171cb5fbc1d0f29ed59bd28bc5bbea329..489a54ef543211e66d141055d28444dce3e5b963 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_BWCT.c,v 1.3 2005/05/08 04:32:43 reinelt Exp $
+/* $Id: drv_BWCT.c,v 1.4 2005/12/11 14:55:28 reinelt Exp $
  *
  * new style driver for BWCT USB LCD displays
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: drv_BWCT.c,v $
+ * Revision 1.4  2005/12/11 14:55:28  reinelt
+ * contrast range for BWCT is 0..255, not 0..100
+ *
  * Revision 1.3  2005/05/08 04:32:43  reinelt
  * CodingStyle added and applied
  *
@@ -258,7 +261,7 @@ static int drv_BW_start(const char *section, const int quiet)
     drv_BW_command(0x06);      /* curser moves to right, no shift */
 
 
-    if (cfg_number(section, "Contrast", 0, 0, 100, &contrast) > 0) {
+    if (cfg_number(section, "Contrast", 0, 0, 255, &contrast) > 0) {
        drv_BW_contrast(contrast);
     }
 
index 18c885ac0a33c30f2eeb47149ada59e7ebb7e728..984d60d0c573e51cada4601ae441c0e375d4778b 100644 (file)
@@ -111,6 +111,7 @@ Display HD44780-winamp {
     UseBusy 1
     Port '/dev/parports/0'     
     Size '20x4'
+    asc255bug 1
     Wire {
        RW      'AUTOFD'
        RS      'INIT'
@@ -219,7 +220,8 @@ Display SimpleLCD {
 Display BA63 {
     Driver   'WincorNixdorf'
     Model    'BA63'
-    Port     '/dev/tts/0'
+#   Port     '/dev/tts/0'
+    Port     '/dev/tts/USB0'
     Speed     9600
     BarChar   219
     SelfTest  0
@@ -262,8 +264,8 @@ Display USBLCD {
 
 Display BWCT {
     Driver 'BWCT'
-    Size '16x2'
-    Contrast 30
+    Size '20x4'
+    Contrast 220
     asc255bug 1
     Icons 1
 }
@@ -280,13 +282,13 @@ Display T6963-240x64 {
 }
 
 
-#Display LPH7508 {
-#    Driver 'LPH7508'
-#    Port   '/dev/parports/0'
-#    Font   '6x8'
-#}
-
 Display LPH7508 {
+    Driver 'LPH7508'
+    Port   '/dev/parports/0'
+    Font   '6x8'
+}
+
+Display LPH7508-serdisplib {
     Driver 'serdisplib'
     Port 'PAR:/dev/parports/0'
     Model 'LPH7508'
@@ -842,16 +844,17 @@ Layout testMySQL {
 #Display 'T6963-240x64'
 #Display 'XWindow'
 #Display 'USBLCD'
-#Display 'BWCT'
+Display 'BWCT'
 #Display 'Image'
 #Display 'Trefon'
-Display 'LPH7508'
+#Display 'LPH7508-serdisplib'
+#Display 'LPH7508'
 
 #Layout 'Default'
 #Layout 'L8x2'
 #Layout 'L16x2'
-#Layout 'L20x2'
-Layout 'Test'
+Layout 'L20x2'
+#Layout 'Test'
 #Layout 'Test2'