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 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).
Download For BPI-M2
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) -b 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
1 Like
Hello !
I installed BPI-WiringPi2 but I cant figure how to test sample code…
WP official website and bpi Github doc says to use sudo ./hello
But I have a command not found
…
EDIT :
OK, real file to lanch the test is not the hello.c (or others)
but bpi_test_hello !
••••••
••••••
wiringPi build looks ok
••••••
••••••
wiringPi Build script
WiringPi Library
[UnInstall]
make: Nothing to be done for ‘all’.
[Install Headers]
[Install Dynamic Lib]
WiringPi Devices Library
[UnInstall]
make: Nothing to be done for ‘all’.
[Install Headers]
[Install Dynamic Lib]
GPIO Utility
make: Nothing to be done for ‘all’.
[Install]
All Done.
NOTE: To compile programs with wiringPi, you need to add:
-lwiringPi
to your compile line(s) To use the Gertboard, MaxDetect, etc.
code (the devLib), you need to also add:
-lwiringPiDev
to your compile line(s).
••••••
••••••
••••••
Can you help ?
Thanks
`