diff options
Diffstat (limited to '')
-rw-r--r-- | lcd4linux.c | 21 | ||||
-rw-r--r-- | lcd4linux.conf.sample | 18 |
2 files changed, 25 insertions, 14 deletions
diff --git a/lcd4linux.c b/lcd4linux.c index b9fd024..668e3b1 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -1,4 +1,4 @@ -/* $Id: lcd4linux.c,v 1.9 2000/03/22 15:36:21 reinelt Exp $ +/* $Id: lcd4linux.c,v 1.10 2000/03/23 07:24:48 reinelt Exp $ * * LCD4Linux * @@ -20,6 +20,10 @@ * * * $Log: lcd4linux.c,v $ + * Revision 1.10 2000/03/23 07:24:48 reinelt + * + * PPM driver up and running (but slow!) + * * Revision 1.9 2000/03/22 15:36:21 reinelt * * added '-l' switch (list drivers) @@ -117,13 +121,6 @@ void main (int argc, char *argv[]) cfg_set ("row3", "Busy %cu%% $r10cu"); cfg_set ("row4", "Load %l1%L$r10l1"); - cfg_set ("tick", "100"); - cfg_set ("tack", "500"); - cfg_set ("tau", "500"); - - cfg_set ("fifo", "/var/run/LCD4Linux"); - cfg_set ("overload", "2.0"); - if (cfg_read (cfg)==-1) exit (1); @@ -136,8 +133,8 @@ void main (int argc, char *argv[]) exit (1); } - tick=atoi(cfg_get("tick")); - tack=atoi(cfg_get("tack")); + tick=atoi(cfg_get("tick")?:"100"); + tack=atoi(cfg_get("tack")?:"500"); process_init(); @@ -145,7 +142,9 @@ void main (int argc, char *argv[]) lcd_put (1, 1, "* LCD4Linux V" VERSION " *"); lcd_put (2, 1, " (c) 2000 M.Reinelt"); lcd_flush(); - + + exit (0); + sleep (3); lcd_clear(); diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample index f00c93e..cb68fba 100644 --- a/lcd4linux.conf.sample +++ b/lcd4linux.conf.sample @@ -3,10 +3,22 @@ #Speed 19200 #Contrast 160 -Display X11 -rows 2 -columns 20 +#Display X11 +#rows 2 +#columns 20 +DISPLAY PPM +rows 4 +columns 20 +pixelsize 5 +pixelgap 1 +rowgap 1 +colgap 1 +border 20 +foreground 102000 +halfground 70c000 +background 80d000 + #Row1 "*** %o %v ***" #Row2 "%p CPU %r MB RAM" #Row3 "Busy %cu%% $r10cs+cb" |