|
|
@ -24,8 +24,9 @@ while test $COUNTER -lt 1; do #run forever #this seems to expect a file named 1 |
|
|
|
# fi |
|
|
|
# echo "DIVIDEBY TWO IS: $DIVIDEBYTWO" |
|
|
|
#seems to need a space after the first funct. parenthesis, and the call to function |
|
|
|
echo "(defun gopher () (with-i2c (str 96) (write-byte #x40 str) (write-byte $DIVIDEBYTWO str) (write-byte #x00 str))) (gopher)" > /dev/ttyUS> |
|
|
|
# echo " (gopher)" > /dev/ttyUSB0 |
|
|
|
#seems to not like function named gopher, so set to go4. perhaps character limit. |
|
|
|
echo "(defun go4() (with-i2c (str 96) (write-byte #x40 str) (write-byte $DIVIDEBYTWO str) (write-byte #x00 str))) (go4)" > /dev/ttyUS> |
|
|
|
# echo " (go4)" > /dev/ttyUSB0 |
|
|
|
sleep 5 |
|
|
|
done |
|
|
|
|