raspberrypi:wiringpi
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| raspberrypi:wiringpi [2017/01/14 16:25] – created aistis | raspberrypi:wiringpi [2017/02/05 00:59] (current) – aistis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Biblioteka c++ GPIO | + | Raspberry Pi turi daug biblioteku skirtų regulioti GPIO. |
| + | Biblioteka | ||
| * http:// | * http:// | ||
| + | komandos: | ||
| + | < | ||
| + | gpio -v | ||
| + | gpio readall | ||
| + | </ | ||
| + | |||
| + | Paprastas mirksniukas: | ||
| + | <code c> | ||
| + | #include < | ||
| + | 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.1484403945.txt.gz · Last modified: by aistis
