temp test

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-14 10:50:06 +02:00
parent 667eb93b76
commit a49ed2086f
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ def relay_controller(pin: int, state: str):
# relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
# relay.on()
GPIO.output(pin, GPIO.LOW)
time.sleep(1)
GPIO.output(pin, GPIO.HIGH)
debug_print("Set relay-pin "+str(pin)+" to state True")
elif state == "False":
# relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)