strawberry-pi-greenhouse/test.py

17 lines
339 B
Python
Raw Normal View History

import time
import os
import gpiozero
pins = [14,15]
# for pin in pins:
# print(pin)
# relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
# relay.on()
# time.sleep(1)
# relay.off()
relay = gpiozero.OutputDevice(14, active_high=False, initial_value=False)
relay.on()
time.sleep(30)
relay.off()