guowenxue
2019-07-30 c6dff0f738ecd7b1d8f7857dbf3b49fb23ee9b29
tools/setup_wiringPi.sh
@@ -1,10 +1,12 @@
#!/bin/bash
# This shell script used to install wiringPi library
function install_wiringpi()
{
gpio -v > /dev/null 
if [ $? == 0 ] ; then
    echo "wiringPi library already installed, exit now..."
    exit;
        return;
fi
if [ ! -d wiringPi ] ; then
@@ -14,4 +16,15 @@
cd wiringPi 
git pull origin
./build
}
function install_systools()
{
    sudo apt-get install -y  libssl-dev openssl
}
install_systools
install_wiringpi