changed code

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-06 19:44:02 +02:00
parent bb68e0f117
commit e946dbb190
1 changed files with 11 additions and 6 deletions

13
test.py
View File

@ -4,9 +4,14 @@ import gpiozero
pins = [14,15,18,23,24,25,8,7,8,25,24,23,18,15,15] pins = [14,15,18,23,24,25,8,7,8,25,24,23,18,15,15]
for pin in pins: # 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()
# time.sleep(1)
# relay.off()
relay = gpiozero.OutputDevice(p14, active_high=False, initial_value=False)
relay.on() relay.on()
time.sleep(1) time.sleep(30)
relay.off() relay.off()