changed some shit

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-06 18:56:58 +02:00
parent ed7126122e
commit 0ee752281a
1 changed files with 7 additions and 6 deletions

13
test.py
View File

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