]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2004-06-13 01:12:52 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 13 Jun 2004 01:12:52 +0000 (01:12 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 13 Jun 2004 01:12:52 +0000 (01:12 +0000)
debug widgets changed (thanks to Andy Baxter)

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

hash.c
hash.h
lcd4linux.conf.sample

diff --git a/hash.c b/hash.c
index cceb6e7336ab8eeefc7edb724ac1a96f132cdb8d..f66d6e1ae7c3a150334200c8ee12157c1677eb87 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -1,4 +1,4 @@
-/* $Id: hash.c,v 1.19 2004/06/01 06:45:30 reinelt Exp $
+/* $Id: hash.c,v 1.20 2004/06/13 01:12:52 reinelt Exp $
  *
  * hashes (associative arrays)
  *
  *
  *
  * $Log: hash.c,v $
+ * Revision 1.20  2004/06/13 01:12:52  reinelt
+ *
+ * debug widgets changed (thanks to Andy Baxter)
+ *
  * Revision 1.19  2004/06/01 06:45:30  reinelt
  *
  * some Fixme's processed
 #include <stdio.h>
 #include <string.h>
 #include <regex.h>
-//#include <sys/types.h>
 
 #include "debug.h"
 #include "hash.h"
diff --git a/hash.h b/hash.h
index 34286b8516bd74f76c1c063970e793a491542842..6c3870df507f3d29369cc41683d184641a0ac412 100644 (file)
--- a/hash.h
+++ b/hash.h
@@ -1,4 +1,4 @@
-/* $Id: hash.h,v 1.12 2004/06/01 06:45:30 reinelt Exp $
+/* $Id: hash.h,v 1.13 2004/06/13 01:12:52 reinelt Exp $
  *
  * hashes (associative arrays)
  *
  *
  *
  * $Log: hash.h,v $
+ * Revision 1.13  2004/06/13 01:12:52  reinelt
+ *
+ * debug widgets changed (thanks to Andy Baxter)
+ *
  * Revision 1.12  2004/06/01 06:45:30  reinelt
  *
  * some Fixme's processed
@@ -84,9 +88,7 @@
 #define _HASH_H_
 
 
-// struct timeval
 #include <sys/time.h>
-
 typedef struct timeval timeval;
 
 typedef struct {
index 9e2235cf923993a0baf0d75ae46870b747a3bd15..774c451bb140ee1d511a9dbe2cc84d3328a37ecd 100644 (file)
@@ -324,33 +324,44 @@ Widget Uptime {
 
 # debugging widgets 
 
-Widget OnOffTest1 {
-    class 'Text'
-    expression '....................'
-    width 20
-    visible onofftest('0')
-    align 'L'
-    update 2000
-}
-
 Widget BarTest {
     class 'Bar'
-    expression bartest(0,200,100,1)
-    expression2 100
+    # test::bar(barno,maxval,startval,delta) - move a test value between 0 and max.
+    # delta= step to change value by each time it's read.
+    # barno - ten different test bar values can be set up, with barno=0..9
+    # if delta=0, just returns the value of bar n instead of changing it.
+    expression test::bar(0,100,50,1)
+    expression2 test::bar(1,100,0,1)
     length 10
-    max 200
+    max 100
     direction 'E'
     update 200
 }
 
 Widget BarTestVal {
     class 'Text'
-    expression bartest(0,200,100,0)
+    expression test::bar(0,100,50,0)
     prefix 'Test '
     width 9
     update 200
 }
 
+Widget LightningTest {
+    class 'icon'
+    speed 500
+    visible test::onoff(0)
+    bitmap {
+        row1 '...***'
+        row2 '..***.'
+        row3 '.***..'
+        row4 '.****.'
+        row5 '..**..'
+        row6 '.**...'
+        row7 '**....'
+        row8 '*.....'
+    }
+}
+
 
 # Icons