From a49ed2086f77dc8619fa086eadf2c2e51c24d76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 14 Jul 2022 10:50:06 +0200 Subject: [PATCH] temp test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 158e6ad..312f555 100644 --- a/main.py +++ b/main.py @@ -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)