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.
 
 
 
 
 
 

28 lines
411 B

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