Alle Dateien aus dem Pythonkurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
294 B

#! /usr/bin/python3
import RPi.GPIO as GPIO
from time import sleep
__PIN__ = 18
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(__PIN__,GPIO.OUT)
while True:
GPIO.output(__PIN__,GPIO.HIGH)
print('LED ein')
sleep(0.5)
GPIO.output(__PIN__,GPIO.LOW)
print('LED aus')