24 lines
294 B
Python
Executable File
24 lines
294 B
Python
Executable File
#! /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')
|
|
|
|
|
|
|