Instructions

27
Benötigte Bauteile:
1x Steckplatine
1x LED rot
1x 220-Ohm-Widerstand
2x Verbindungskabel
Das nächste Programm led.py schaltet die LED für 2 Sekunden ein und danach wieder aus:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(25, GPIO.OUT)
GPIO.output(25, 1)
time.sleep(2)
GPIO.output(25, 0)
GPIO.cleanup()