]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2005-05-28 09:06:14 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 28 May 2005 09:06:14 +0000 (09:06 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sat, 28 May 2005 09:06:14 +0000 (09:06 +0000)
serdisplib cosmetics

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

drv_serdisplib.c
lcd4linux.conf.sample

index 4aa5621220e5a1452199dd30f1f94337dbc26131..2fb3f4cc842d4aa682da05cb91f863cf95b130bc 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: drv_serdisplib.c,v 1.4 2005/05/12 14:55:47 reinelt Exp $
+/* $Id: drv_serdisplib.c,v 1.5 2005/05/28 09:06:14 reinelt Exp $
  *
  * driver for serdisplib displays
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: drv_serdisplib.c,v $
+ * Revision 1.5  2005/05/28 09:06:14  reinelt
+ * serdisplib cosmetics
+ *
  * Revision 1.4  2005/05/12 14:55:47  reinelt
  * plugins for serdisplib driver
  *
@@ -228,15 +231,15 @@ static int drv_SD_start(const char *section)
        drv_SD_contrast(contrast);
     }
 
-    if (cfg_number(section, "BACKLIGHT", 0, 0, 1, &backlight) > 0) {
+    if (cfg_number(section, "Backlight", 0, 0, 1, &backlight) > 0) {
        drv_SD_backlight(backlight);
     }
 
-    if (cfg_number(section, "REVERSE", 0, 0, 1, &reverse) > 0) {
+    if (cfg_number(section, "Reverse", 0, 0, 1, &reverse) > 0) {
        drv_SD_reverse(reverse);
     }
 
-    if (cfg_number(section, "ROTATE", 0, 0, 3, &rotate) > 0) {
+    if (cfg_number(section, "Rotate", 0, 0, 3, &rotate) > 0) {
        drv_SD_rotate(rotate);
     }
 
index d2a152f4ec573730c6e31ce04619947793e0cd13..a4023768b2f15d20d93ba2cdc42ffa4d79b59999 100644 (file)
@@ -87,8 +87,8 @@ Display HD44780-generic {
     Driver 'HD44780'
     Model 'generic'
     Port '/dev/parports/0'     
-    Size '20x4'
-    asc255bug 1
+    Size '8x2'
+    asc255bug 0
     Wire {
        RW      'GND'
        RS      'AUTOFD'
@@ -327,7 +327,7 @@ Widget Busy {
     expression proc_stat::cpu('busy', 500)
     prefix 'Busy'      
     postfix '%'        
-    width 10   
+    width    
     precision 1
     align 'R'  
     update tick        
@@ -479,8 +479,8 @@ Widget BarTest {
     # if delta=0, just returns the value of bar n instead of changing it.
     expression test::bar(0,30,25,1)
     expression2 test::bar(1,30,0,1)
-    length 6
-    max 50
+    length 8
+    max 50
     direction 'E'
     update 10
 }
@@ -687,6 +687,15 @@ Layout L24x8 {
     }
 }
 
+Layout L8x2 {
+    Row1 {
+       Col1  'Busy'
+    }
+    Row2 {
+       Col1 'BarTest'
+    }
+}
+
 Layout L16x2 {
     Row1 {
        Col1  'Busy'
@@ -697,15 +706,6 @@ Layout L16x2 {
        #Col11 'DiskBar'
        Col11 'BarTest'
     }
-#   Row2 {
-#      Col1 'Heartbeat'
-#      Col2 'EKG'
-#      Col3 'Karo'
-#      Col4 'Heart'
-#      Col5 'Blob'
-#      Col6 'Wave'
-#      Col7 'Squirrel'
-#   }
 }
 
 Layout L20x2 {
@@ -749,12 +749,12 @@ Layout testMySQL {
 }
 
 
-Display 'SerDispLib'
+#Display 'SerDispLib'
 #Display 'LCD-Linux'
 #Display 'LK204'
 #Display 'MI240'
 #Display 'CW12232'
-#Display 'HD44780-generic'
+Display 'HD44780-generic'
 #Display 'SC1602D'
 #Display 'LCM-162'
 #Display 'CF631'
@@ -772,7 +772,8 @@ Display 'SerDispLib'
 #Display 'Trefon'
 
 #Layout  'Default'
-Layout 'L16x2'
+Layout 'L8x2'
+#Layout 'L16x2'
 #Layout 'L20x2'
 #Layout 'Test'