BPI-WiringPi now supports BPI-M2.Please go with the latest M2-BSP kernel source code.
(you may go to [BPIM2+] BPI-M2-BSP Updates,WiringPi supported - BPI-M2+/BPI-M2 Zero/BPI-P2 Zero(H3) - banana pi single board computer open source project official forum BPI team for more info)
You may download from github.
https://github.com/BPI-SINOVOIP/BPI-WiringPi/tree/BPI_M2
BPI-WiringPi README
This is a modified WiringPi for BPI M1 / M1Plus /M2. 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 GitHub - BPI-SINOVOIP/BPI-WiringPi: (OLD) Supports BananaPi BPI -M1 / M1Plus / M2 / M2P / M3, (NEW) Version On BPI-SINOVOIP/BPI-WiringPi2 (supoort all Banana Pi boards in one version) · GitHub.
Download For BPI-M2
Installation
cd BPI-WiringPi
chmod +x ./build
sudo ./build
Examples
You can go to folder "“m2_test” to test sample codes.
BPI Team