2022-07-06 16:34:46 +00:00
|
|
|
import time
|
|
|
|
import os
|
2022-07-06 17:18:23 +00:00
|
|
|
from gpiozero import *
|
2022-07-06 16:34:46 +00:00
|
|
|
|
2022-07-06 17:03:19 +00:00
|
|
|
pins = [8,10,12,16,18,22,24,26]
|
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)
|
|
|
|
relay.on()
|