#!/bin/sh

echo 'My first hello world - by AVLdiy.cn / hahan'
echo 'This sh is how to call wbox function demo.'

change=0
gpio_value=0

while true
do
	gpio_value=`gpio -n2 -min -i0`
	echo $gpio_value

 	if [ $gpio_value == 1 ]
	then
	#	echo "gpio value=$gpio_value"
	#	echo "Now play /mnt/mmcblk0p1/04.wav song"
		callplay /mnt/mmcblk0p1/light/check_people.m4a  > /dev/null	#do you want
		effects -F -d1360 -t8 
	fi
	
	sleep 3
done

echo 'exit shell'

