parent
e405a2e465
commit
46355af829
3
test.py
3
test.py
|
@ -4,12 +4,13 @@ import RPi.GPIO as GPIO
|
||||||
|
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BOARD)
|
GPIO.setmode(GPIO.BOARD)
|
||||||
|
GPIO.setwarnings(False)
|
||||||
|
|
||||||
pins = [8,10,12,16,18,22,24,26]
|
pins = [8,10,12,16,18,22,24,26]
|
||||||
|
|
||||||
for pin in pins:
|
for pin in pins:
|
||||||
print(pin)
|
print(pin)
|
||||||
# GPIO.setup(pin, GPIO.OUT)
|
GPIO.setup(pin, GPIO.OUT)
|
||||||
GPIO.output(pin, False)
|
GPIO.output(pin, False)
|
||||||
time.sleep(float(0.5))
|
time.sleep(float(0.5))
|
||||||
GPIO.output(pin, True)
|
GPIO.output(pin, True)
|
||||||
|
|
Loading…
Reference in New Issue