gpio -v
gpio readall
</pre>
==== WiringPi Library unter Python ====
Installieren mit <pre>
sudo apt-get install python-dev python-pip
sudo pip install wiringpi2
</pre>
um damit eine LED via PWM an GPIO 18 zu dimmen: <pre>
#!/usr/bin/python
import wiringpi2 as gpio
import time
#set up gpio
gpio.wiringpiPiSetupGpio ()
gpio.pinMode (18,2)
while True:
gpio.pwmWrite (18,0)
for n in range (0,1024):
gpio.pwmWrite (18,n)
time.sleep (0.01)
</pre>