udpate base.sh and gpio.sh use array table