parent
b90fab0a42
commit
09d2db4821
2
main.py
2
main.py
|
@ -24,7 +24,7 @@ def error_print(message: str):
|
||||||
print('[ERROR]['+current_time+'] '+message)
|
print('[ERROR]['+current_time+'] '+message)
|
||||||
|
|
||||||
#relay
|
#relay
|
||||||
def relay_controller(pin: int, state: str):
|
def relay_controller(pin: int, state):
|
||||||
print(state)
|
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)
|
||||||
|
|
Loading…
Reference in New Issue