11 echo "------------- start ---------------" | myLog
16 . ./init.sh 2>&1 > $DEVNULL
18 . ./adc.sh 2>&1 > $DEVNULL &
20 . ./mode.sh 2>&1 > $DEVNULL
22 . ./update.sh 2>&1 > $DEVNULL
24 . ./message.sh 2>&1 > $DEVNULL &
26 checkBoard=$(./fast-gpio mread $KBD_MASK)
28 echo "checkBoard: $checkBoard"
30 if [ "$checkBoard" == "0x0" ] || [ "$(($checkBoard))" == "$KBD_WIFI" ] || [ "$(($checkBoard))" == "$KBD_MIC" ]; then
31 ./fast-gpio bgread $KBD_MASK "./kbd.sh $audioDevice $micDevice" 2>&1 > $DEVNULL &
32 echo $! > $PID/fast-gpio
34 echo "GPIO busy, KBD listenter has been omited" | myLog
37 # transmiter and receiver
38 . ./receiver.sh 2>&1 > $DEVNULL &
39 . ./transmitter.sh 2>&1 > $DEVNULL &
41 . ./gps.sh 2>&1 > $DEVNULL &
43 . ./intro.sh 2>&1 > $DEVNULL
47 . ./player.sh 2>&1 > $DEVNULL &