strawberry-pi-greenhouse/test.py

10 lines
204 B
Python
Raw Normal View History

import time
import os
from gpiozero import *
pins = [8,10,12,16,18,22,24,26]
for pin in pins:
print(pin)
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
relay.on()