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.
24 lines
348 B
24 lines
348 B
#include <stdio.h> |
|
#include <wiringPi.h> |
|
|
|
int main (void) |
|
{ |
|
int i = 0; |
|
|
|
wiringPiSetup () ; |
|
|
|
for (i=0; i<28; i++) |
|
pinMode (i, OUTPUT) ; |
|
|
|
for (;;) |
|
{ |
|
for (i=0; i<28; i++) |
|
digitalWrite (i, HIGH) ; // On |
|
delay (500) ; // mS |
|
|
|
for (i=0; i<28; i++) |
|
digitalWrite (i, LOW) ; // Off |
|
delay (500) ; |
|
} |
|
return 0 ; |
|
}
|
|
|