parent
e763c6ff66
commit
3a6a9e61a1
1
main.py
1
main.py
|
@ -25,7 +25,6 @@ def error_print(message: str):
|
||||||
|
|
||||||
#relay
|
#relay
|
||||||
def relay_controller(pin: int, state: str):
|
def relay_controller(pin: int, state: str):
|
||||||
print(state)
|
|
||||||
if state == "True":
|
if state == "True":
|
||||||
relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=False)
|
relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=False)
|
||||||
relay.on()
|
relay.on()
|
||||||
|
|
Loading…
Reference in New Issue