parent
1ecbbc6f87
commit
41410cdfd5
9
test.py
9
test.py
|
@ -9,8 +9,9 @@ pins = [8,10,12,14,18,20,22,24]
|
||||||
|
|
||||||
for pin in pins:
|
for pin in pins:
|
||||||
GPIO.setup(pin, GPIO.OUT)
|
GPIO.setup(pin, GPIO.OUT)
|
||||||
GPIO.output(pin, GPIO.LOW)
|
|
||||||
time.sleep(0.001)
|
GPIO.output(8, GPIO.HIGH)
|
||||||
GPIO.output(pin, GPIO.HIGH)
|
time.sleep(30)
|
||||||
time.sleep(0.001)
|
GPIO.output(8, GPIO.LOW)
|
||||||
|
|
||||||
GPIO.cleanup
|
GPIO.cleanup
|
Loading…
Reference in New Issue