wiringPi for Orange Pi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
348 B

6 years ago
#include <stdio.h>
#include <wiringPi.h>
int main (void)
{
int i = 0;
wiringPiSetup () ;
for (i=0; i<28; i++)
6 years ago
pinMode (i, OUTPUT) ;
for (;;)
{
for (i=0; i<28; i++)
6 years ago
digitalWrite (i, HIGH) ; // On
delay (500) ; // mS
for (i=0; i<28; i++)
6 years ago
digitalWrite (i, LOW) ; // Off
delay (500) ;
}
return 0 ;
}