User Tools

Site Tools


raspberrypi:wiringpi

This is an old revision of the document!


Biblioteka c++ GPIO

komandos:

gpio -v
gpio readall

Paprastas mirksniukas:

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

paleidimas:

gcc -Wall -o blink blink.c -lwiringPi
sudo ./blink
raspberrypi/wiringpi.1484404073.txt.gz · Last modified: by aistis