# !/bin/sh
#
# cycle_lisst script
#
#  turns the lisst off
#  waits 60 seconds
#  then turns lisst back on 
#  using ts7500ctl
#
ts7500ctl --address=0x66 --poke16=0x0100 # direction = OUT
ts7500ctl --address=0x66 --poke16=0x0049 # OFF
echo " "
echo "LISST IS OFF"
echo "Waiting one minute"
#
# Wait loop
#
echo " "
echo .........x.........x.........x.........x.........x.........x
i=1
while [ "$i" -le 60 ]
  do
    echo -n .
    i=`expr $i + 1`
    sleep 1
  done
echo " "
#
# Turn lisst on
#
ts7500ctl --address=0x66 --poke16=0x0100 # direction = OUT
ts7500ctl --address=0x66 --poke16=0x0449 # ON
echo "LISST IS ON" 
echo " "
