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/
BPI-M2+
(
BPI-M2 Plus
)
H3 quad cord single board computer
66
BPI-M2+ WiringPi
Summary of Contents for BPI-M2+
Page 1: ......
Page 5: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 5 About BPI M2 M2 plus...
Page 6: ...First Look BPI M2 BPI M2 BPI M2 Plus H3 quad cord single board computer 6 BPI M2 hardware...
Page 11: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 11 BPI M2 Pin define...
Page 29: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 29 BPI M2 CSI camera interface...
Page 35: ...BPI M2 software BPI M2 BPI M2 Plus H3 quad cord single board computer 35 BPI M2 software...
Page 78: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 78 BPI M2 BT4 0 Lab test...
Page 79: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 79 BPI M2 BT4 0 Lab test...
Page 80: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 80 BPI M2 BT4 0 Lab test...
Page 81: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 81 BPI M2 BT4 0 Lab test...
Page 83: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 83 BPI M2 WIFI Lab test...
Page 85: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 85 BPI M2 WIFI Lab test...
Page 87: ...BPI M2 BPI M2 Plus H3 quad cord single board computer 87 BPI M2 WIFI Lab test...