资源连接:http://wiringpi.com/download-and-install/
一、解决树莓派apt-update速度慢:https://blog.youkuaiyun.com/weixin_39059738/article/details/86262799
1.备份原系统的apt的源镜像列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.编辑sources.list 文件
sudo vim /etc/apt/sources.list
3.注释掉原来的内容,添加以下内容:
deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib
保存退出。
其实就是使用国内的镜像源,代替国外的镜像源。
二、安装:先要有一个下载包:http://wiringpi.com/download-and-install/
$ cd
$ tar xfz wiringPi-98bcb20.tar.gz
$ cd wiringPi-98bcb20
$ ./build
查询:
$ gpio -v
$ gpio readall
三:查询失败,补救
https://blog.youkuaiyun.com/z770464934/article/details/91521839
https://blog.youkuaiyun.com/SmartTiger_CSL/article/details/102859831
https://blog.youkuaiyun.com/qq_38413498/article/details/103196203