From 0ee752281ab131ac7cf899de46da51cecb9a8814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 6 Jul 2022 18:56:58 +0200 Subject: [PATCH] changed some shit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test.py b/test.py index 35c71bf..9b2c157 100644 --- a/test.py +++ b/test.py @@ -3,12 +3,13 @@ import os import RPi.GPIO as GPIO -GPIO.setmode(GPIO.BOARD) +GPIO.setmode(GPIO.BCM) -GPIO.setup(8, GPIO.OUT) - -GPIO.output(8, GPIO.HIGH) -time.sleep(5) -GPIO.output(8, GPIO.LOW) +pins = [8,10,12,14,18,20,22,24] +for pin in pins: + GPIO.setup(pin, GPIO.OUT) + GPIO.output(pin, GPIO.LOW) + time.sleep(1) + GPIO.output(pin, GPIO.HIGH) GPIO.cleanup \ No newline at end of file