aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-28 09:06:14 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-28 09:06:14 +0000
commit2e6117d22ba0e62f4473188b84b2b6cbb2811ff1 (patch)
tree54da94751f24fed25545dd380055164071424c6f
parentf4c6d06bbd439f58291c6949a497130f313a5e78 (diff)
downloadlcd4linux-2e6117d22ba0e62f4473188b84b2b6cbb2811ff1.tar.gz
[lcd4linux @ 2005-05-28 09:06:14 by reinelt]
serdisplib cosmetics git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@554 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--drv_serdisplib.c11
-rw-r--r--lcd4linux.conf.sample35
2 files changed, 25 insertions, 21 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c
index 4aa5621..2fb3f4c 100644
--- a/drv_serdisplib.c
+++ b/drv_serdisplib.c
@@ -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);
}
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample
index d2a152f..a402376 100644
--- a/lcd4linux.conf.sample
+++ b/lcd4linux.conf.sample
@@ -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 8
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'