parent
c2fa15bd86
commit
3ad3c2b2bb
5
test.py
5
test.py
|
@ -8,8 +8,5 @@ for pin in pins:
|
||||||
print(pin)
|
print(pin)
|
||||||
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
|
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
|
||||||
relay.on()
|
relay.on()
|
||||||
|
time.sleep(10)
|
||||||
for pin in pins:
|
|
||||||
print(pin)
|
|
||||||
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
|
|
||||||
relay.off()
|
relay.off()
|
Loading…
Reference in New Issue