Programmierbeispiel in der Programmiersprache Python
<pre class="brush:py"># Benoetigte Module werden importiert und eingerichtet
import RPi.GPIO as GPIO
import time
GPIO.output(LED_ROT,GPIO.HIGH) #LED wird eingeschaltet
GPIO.output(LED_GRUEN,GPIO.LOW) #LED wird eingeschaltet
time.sleep(4) #Wartemodus für 4 Sekunden
print("LED GRUEN 3 Sekunden an")
GPIO.output(LED_ROT,GPIO.HIGH) #LED wird eingeschaltet