chiark / gitweb /
cv programming works
authorian <ian>
Wed, 12 Jan 2005 01:05:58 +0000 (01:05 +0000)
committerian <ian>
Wed, 12 Jan 2005 01:05:58 +0000 (01:05 +0000)
hostside/program-cv [new file with mode: 0755]

diff --git a/hostside/program-cv b/hostside/program-cv
new file mode 100755 (executable)
index 0000000..cd6be20
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+# usage:
+#  ./program-cv DECODER-ADDR CV VALUE -s/dev/ttyS0
+# where DECODER-ADDR, CV, VALUE are all decimal unless
+# prefixed by 0x or 0.
+set -e
+addr="$1"; shift
+cv="$1"; shift
+value="$1"; shift
+./hostside "$@" -i1000 -w10000 cvwrite "$addr" "$cv" "$value"