parent
5252b22fcc
commit
d1076f12f5
9
test.py
9
test.py
|
@ -5,13 +5,10 @@ import RPi.GPIO as GPIO
|
|||
|
||||
GPIO.setmode(GPIO.BCM)
|
||||
|
||||
pins = [8,10,12,14,18,20,22,24]
|
||||
GPIO.setup(12, GPIO.OUT)
|
||||
|
||||
for pin in pins:
|
||||
GPIO.setup(pin, GPIO.OUT)
|
||||
|
||||
GPIO.output(10, GPIO.HIGH)
|
||||
GPIO.output(12, GPIO.HIGH)
|
||||
time.sleep(5)
|
||||
GPIO.output(10, GPIO.LOW)
|
||||
GPIO.output(12, GPIO.LOW)
|
||||
|
||||
GPIO.cleanup
|
Loading…
Reference in New Issue