wiringPi
sudo apt-get install wiringpi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v
#会看到gpio version: 2.52,说明安装成功
Python
sudo apt-get update
sudo apt-get install python-pip
sudo pip3 install RPi.GPIO
下载 GPIO_Test.py 到树莓派
sudo python GPIO_Test.py
现象:电源指示LED常亮,GPIO连接LED依次亮起后依次熄灭,不断循环。