Example extended with "bit" operation.
authorHeiko Schlittermann <hs@schlittermann.de>
Mon, 22 Dec 2008 23:51:48 +0100
changeset 9 67d97311077a
parent 8 c248fbd9b624
child 10 d32454497beb
Example extended with "bit" operation.
examples/example
--- a/examples/example	Thu Dec 18 13:44:06 2008 +0100
+++ b/examples/example	Mon Dec 22 23:51:48 2008 +0100
@@ -22,5 +22,17 @@
     sleep 1;
     $r = $q->cmd("WB010001");	# 1 bit setzen
     print $r->ok ? $r->data : $r->error, "\n";
+
+    sleep 1;
+    $r = $q->cmd("WB010055");	# 0101|0101
+    print $r->ok ? $r->data : $r->error, "\n";
+
+    sleep 1;
+    $r = $q->cmd("WB0100AA");	# 1010|1010
+    print $r->ok ? $r->data : $r->error, "\n";
+
+    sleep 1;
+    $r = $q->cmd("SL010000000055");	# + 0101|0101
+    print $r->ok ? $r->data : $r->error, "\n";
 }