2022-07-06 16:34:46 +00:00
|
|
|
import time
|
|
|
|
import os
|
2022-07-06 17:19:58 +00:00
|
|
|
import gpiozero
|
2022-07-06 16:34:46 +00:00
|
|
|
|
2022-07-06 17:24:07 +00:00
|
|
|
pins = [14,15,18,23,24,25,8,7,8,25,24,23,18,15,15]
|
2022-07-06 16:41:32 +00:00
|
|
|
|
2022-07-06 16:56:58 +00:00
|
|
|
for pin in pins:
|
2022-07-06 16:57:48 +00:00
|
|
|
print(pin)
|
2022-07-06 17:18:23 +00:00
|
|
|
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
|
2022-07-06 17:19:17 +00:00
|
|
|
relay.on()
|
2022-07-06 17:24:07 +00:00
|
|
|
time.sleep(1)
|
2022-07-06 17:19:17 +00:00
|
|
|
relay.off()
|