# !/bin/sh
#
# cycle_ocr script
#
#  turns the ocr off
#  waits 60 seconds
#  then turns ocr back on 
#  using ts7500ctl
#
ts7500ctl --address=0x6c --poke16=0x0100 # direction = OUT
ts7500ctl --address=0x6a --poke16=0x0000 # OFF
echo "OCR 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 ocr on
#
ts7500ctl --address=0x6c --poke16=0x0100 # direction = OUT
ts7500ctl --address=0x6a --poke16=0x0100 # ON
echo "OCR IS ON" 
