This is a modified WiringPi for BPI boards. We call it BPI-WiringPi. It is based on the original WiringPi for Raspberry Pi created by Drogon. The modification is done by BPI-Team. The BPI-WiringPi API usage are the same to the original wiringPi. You can donwload the original wiringPi from: git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.
git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git -b BPI_M1_M1Plus
git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git -b BPI_M2
git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git -b BPI_M3
git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git -b BPI_M2P
cd BPI-WiringPi
chmod +x ./build
sudo ./build
You can go to folder "test folder" to test sample codes.
You can also use the examples and instructions provided by http://wiringpi.com/
And the source directory examples also has many demo.
Thanks!
BPI Team