pi-lights/blink.c
2017-01-03 16:17:10 +00:00

19 lines
247 B
C

#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 ;
}