User Tools

Site Tools


raspberrypi:wiringpi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
raspberrypi:wiringpi [2017/01/14 16:25] – created aistisraspberrypi:wiringpi [2017/02/05 00:59] (current) – aistis
Line 1: Line 1:
-Biblioteka c++ GPIO +Raspberry Pi turi daug biblioteku skirtų regulioti GPIO. 
 +Biblioteka c/c++ GPIO 
   * http://wiringpi.com   * http://wiringpi.com
 +komandos:
 +<code>
 +gpio -v
 +gpio readall
 +</code>
 +
 +Paprastas mirksniukas:
 +<code c>
 +#include <wiringPi.h>
 +int main (void)
 +{
 +  wiringPiSetup () ;
 +  pinMode (0, OUTPUT) ;
 +  for (;;)
 +  {
 +    digitalWrite (0, HIGH) ; delay (500) ;
 +    digitalWrite (0,  LOW) ; delay (500) ;
 +  }
 +  return 0 ;
 +}
 +</code>
 +
 +paleidimas:
 +<code>
 +gcc -Wall -o blink blink.c -lwiringPi
 +sudo ./blink
 +</code>
 +
 +
raspberrypi/wiringpi.1484403945.txt.gz · Last modified: by aistis