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.

27 lines
381 B

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