BPI-R1 WiringPi

install BPI-R1 WiringPi:

1,Download WiringPi from github For BPI-R1

git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git -b BPI_R1


cd BPI-WiringPi

chmod +x ./build

sudo ./build

3,test wiringPi is install success

gpio -v

gpio readall

4,create new : blink.c

#include <wiringPi.h>
int main(void)
  wiringPiSetup() ;
  pinMode (0, OUTPUT) ;
    digitalWrite(0, HIGH) ; delay (500) ;
    digitalWrite(0,  LOW) ; delay (500) ;

compile and run it:

gcc -Wall -o blink blink.c -lwiringPi

runing it:

sudo ./blink

BPI have many extend board support WiringPi. so you can free DIY by youself:

more about BPI extend board,please see:


Last updated