banana pi BPI-R1 A20 dual core open source smart r
  • Initial page
  • LANGS
  • About Banana pi BPI-R1
    • BPI-R1 hardware spec
    • First Chapter
    • Summary
    • BPI-R1 DC Power interface
    • Armbian Linux
    • Compulsive modification of HDMI output resolution
    • BPI-R1 Audio
    • BPI-R1 quick start
    • BPI-R1 CAN Bus
    • BPI-R1 Linux software
    • David Bentham / openwrt-bpi-r1-prebuilt
    • BPI-R1 schematic diagram
    • BPI-R1 HDMI interfact
    • BPI-R1 android software
    • How to build OpenWRT image from github
    • Linux mainline kernel
    • BPI-R1 3.7V lithium battery interface
    • BPI-R1 RGB DSI interface
    • BPI-R1 wifi antenna slot
    • BPI-R1 CE,FCC RoHS Certification
    • BPI-R1 Audio
    • BPI-R1 IR interface
    • BPI-R1 Software
    • bananianlinux
    • WiringPi python
    • NetBSD/evbarm on Allwinner Technology SoCs
    • BPI-R1 OpenWRT
    • BPI-R1 MIC
    • BPI-R1 WiringPi
    • BPI-R1 5 GbE Ethernet ports
    • linux-sunxi wiki
    • BPI-R1 WIFI interface
    • Lamobo Openwrt image
    • BPI-R1 Camera interface
    • BPI-R1 SD card slot
    • BPI-R1 hardware interface
    • Manual for HW setup and basic router functionalities
    • Reference documents
    • Allwinner chip documents
    • linuxkernel34bspimage
    • BPI-R1 WiringPi
    • BPI-R1 SATA interface
    • BPI-R1 Camera interface
    • Linux mainlining effort
    • Pi4J Project
    • BPI-R1 OTG interface
    • BPI-R1 GPIO Pin define
    • Asterisk on BPI-R1
    • Officeal OpenWRT
    • BPI-R1 USB interface
  • About Banana pi BPI-R1
    • Pi4J Project
    • Linux mainlining effort
    • Asterisk on BPI-R1
    • BPI-R1 android software
    • How to build OpenWRT image from github
    • Officeal OpenWRT
    • BPI-R1 3.7V lithium battery interface
    • Summary
    • Armbian Linux
    • BPI-R1 Audio
    • BPI-R1 CE,FCC RoHS Certification
    • BPI-R1 Software
    • WiringPi python
    • BPI-R1 3D & DXF file
    • BPI-R1 OpenWRT
    • BPI-R1 schematic diagram
    • BPI-R1 HDMI interfact
    • linuxmainlinekernel
    • freebsdnetbsd
    • All banana pi product
    • BPI-R1 Camera interface
    • Lamobo Openwrt image
    • BPI-R1 SD card slot
    • bpi-r1-bpi-r2-board-comparison
    • BPI-R1 RGB DSI interface
    • bpi40customizedserver
    • BPI-R1 wifi antenna slot
    • bananianlinux
    • BPI-R1 IR interface
    • BPI-R1 Audio
    • bpi-r1-openbsd
    • Reference documents
    • NetBSD/evbarm on Allwinner Technology SoCs
    • Allwinner chip documents
    • BPI-R1 WiringPi
    • BPI-R1 MIC
    • BPI-R1 5 GbE Ethernet ports
    • BPI-R1 WiringPi
    • BPI-R1 OTG interface
    • linux-sunxi wiki
    • BPI-R1 GPIO Pin define
    • BPI-R1 WIFI interface
    • BPI-R1 USB interface
    • BPI-R1 hardware interface
    • BPI-R1 DC Power interface
    • BPI-R1 hardware spec
    • First Chapter
    • Manual for HW setup and basic router functionalities
    • Compulsive modification of HDMI output resolution
    • linuxkernel34bspimage
    • BPI-R1 quick start
    • BPI-R1 Camera interface
    • BPI-R1 SATA interface
    • BPI-R1 Linux software
    • BPI-R1 CAN Bus
    • David Bentham / openwrt-bpi-r1-prebuilt
  • Getting Started with R1 - Banana Pi Wiki
Powered by GitBook
On this page

Was this helpful?

  1. About Banana pi BPI-R1

BPI-R1 WiringPi

PreviousAllwinner chip documentsNextBPI-R1 MIC

Last updated 5 years ago

Was this helpful?

BPI WiringPi support all raspberry pi module and all banana pi module :BPI-M1,BPI-M1+,BPI-R1,BPI-M2,BPI-M2+,BPI-M2 Ultra,BPI-M2 Magic,BPI-M3,BPI-M64

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

2,Installation:

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) ;
  for(;;) 
  {
    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:

https://bananapi.gitbooks.io/bpi-accessories/content/
https://github.com/BPI-SINOVOIP/WiringPi
https://github.com/BPI-SINOVOIP/WiringPi/tree/master/wiringPi/board