- remove unneeded sudo from blink example
- add 2nd GPIO to bink example
- allow flexible change of GPIO number in blink example
- make gpio program more flexible in both examples
- more cosmetic changes
- rename test directory into examples
--- /dev/null
+#!/bin/bash
+GPIOTOOL=ft232rgpio
+GPIOA=2
+GPIOB=3
+while true; do
+ $GPIOTOOL --gpio=$GPIOA --out 0 --gpio=$GPIOB --out 0
+ sleep 0.3
+ $GPIOTOOL --gpio=$GPIOA --out 1
+ sleep 0.3
+ $GPIOTOOL --gpio=$GPIOA --out 0 --gpio=$GPIOB --out 1
+ sleep 0.3
+ $GPIOTOOL --gpio=$GPIOA --out 1
+ sleep 1
+done
--- /dev/null
+#!/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
+++ /dev/null
-while true; do
-sudo ./cp2103gpio --gpio=0 --out 0
-sleep 0.3
-sudo ./cp2103gpio --gpio=0 --out 1
-sleep 0.3
-sudo ./cp2103gpio --gpio=0 --out 0
-sleep 0.3
-sudo ./cp2103gpio --gpio=0 --out 1
-sleep 1
-done
+++ /dev/null
-while true; do
-./cp2103gpio --gpio=0 --out 1 --gpio 1 --out 0 --sleep 300
-./cp2103gpio --gpio=1 --out 1 --gpio 2 --out 0 --sleep 300
-./cp2103gpio --gpio=2 --out 1 --gpio 1 --out 0 --sleep 300
-./cp2103gpio --gpio=1 --out 1 --gpio 0 --out 0 --sleep 300
-
-
-
-
-
-done