changed pin

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-06 18:47:00 +02:00
parent 5252b22fcc
commit d1076f12f5
1 changed files with 3 additions and 6 deletions

View File

@ -5,13 +5,10 @@ import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM) GPIO.setmode(GPIO.BCM)
pins = [8,10,12,14,18,20,22,24] GPIO.setup(12, GPIO.OUT)
for pin in pins: GPIO.output(12, GPIO.HIGH)
GPIO.setup(pin, GPIO.OUT)
GPIO.output(10, GPIO.HIGH)
time.sleep(5) time.sleep(5)
GPIO.output(10, GPIO.LOW) GPIO.output(12, GPIO.LOW)
GPIO.cleanup GPIO.cleanup