Banana Pi BPI-M1 Manual page 69

Table of Contents

Advertisement

BPI-M1 WiringPi
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/
69

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents