Orange Pi Zero2 installs wiringPi peripheral library

1. Download wiringOP code directly on Orange Pi

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

2. If it cannot be downloaded on Orange Pi , you can also open https://github.com/orangepi-xunlong/wiringOP through a Windows browser
to download the compressed package and then transfer it to Orange Pi through ftp file transfer software. go

3. Compile and install wiringOP

cd wiringOP
sudo./build clean
sudo ./build

4. Verification command: gpio readall
Insert image description here
displays the screen shown above, indicating that the peripheral library WiringPI has been installed.

Guess you like

Origin blog.csdn.net/m0_68038554/article/details/131859817