香橙派Zero2安装wiringPi外设库

1. 直接在香橙派上下载 wiringOP 的代码

sudo apt update
sudo apt install -y git
git clone https://github.com/orangepi-xunlong/wiringOP

2. 如果在香橙派上下载不下来,也可以在通过windows浏览器打开https://github.com/orangepi-xunlong/wiringOP
下载压缩包下载好之后通过ftp文件传输软件传到香橙派上面去

3. 编译安装 wiringOP

cd wiringOP
sudo./build clean
sudo ./build

4. 验证指令: gpio readall
在这里插入图片描述
出现上图所示的画面,表示外设库WiringPI已经安装完成了

猜你喜欢

转载自blog.csdn.net/m0_68038554/article/details/131859817