pi-lights/blink.c

19 lines
247 B
C
Raw Permalink Normal View History

2017-01-03 11:17:10 -05:00
#include <wiringPi.h>
int pin = 3;
void blink() {
digitalWrite (pin, HIGH);
delay (500);
digitalWrite (pin, LOW);
delay (500);
}
int main (void)
{
wiringPiSetup ();
pinMode (pin, OUTPUT);
for (;;) {
blink();
}
return 0 ;
}