wiringPi-sample1

2021/10 26 12:10
#include <wiringPi.h>
int main (void)
{
  wiringPiSetup () ;
  pinMode (0, OUTPUT) ;
  for (;;)
  {
    digitalWrite (0, HIGH) ; delay (500) ;
    digitalWrite (0,  LOW) ; delay (500) ;
  }
  return 0 ;
}

gcc -Wall -o blink blink.c -lwiringPi
sudo ./blink
blink1