libB.c 205 B

123456789101112
  1. #include <wiringPi.h>
  2. int blink (void)
  3. {
  4. wiringPiSetup () ;
  5. pinMode (0, OUTPUT) ;
  6. for (;;)
  7. {
  8. digitalWrite (0, HIGH) ; delay (500) ;
  9. digitalWrite (0, LOW) ; delay (500) ;
  10. }
  11. return 0 ;
  12. }