strawberry-pi-greenhouse/test.py

15 lines
325 B
Python

import time
import os
import gpiozero
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()
for pin in pins:
print(pin)
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
relay.off()