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