Correct and upgrade example files
[pub/pl2303-ft232-gpio.git] / examples / kitt.sh
diff --git a/examples/kitt.sh b/examples/kitt.sh
new file mode 100755 (executable)
index 0000000..271fa59
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+GPIOTOOL=cp2103gpio
+while true; do
+    $GPIOTOOL --gpio=0 --out 1 --gpio 1 --out 0 --sleep 300
+    $GPIOTOOL --gpio=1 --out 1 --gpio 2 --out 0 --sleep 300
+    $GPIOTOOL --gpio=2 --out 1 --gpio 1 --out 0 --sleep 300
+    $GPIOTOOL --gpio=1 --out 1 --gpio 0 --out 0 --sleep 300
+done