From e8f6b4c65b4599af20fb3b7864612815de5efe3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 14 Jul 2022 01:50:49 +0200 Subject: [PATCH] test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index d961ab2..9f076b2 100644 --- a/test.py +++ b/test.py @@ -14,11 +14,11 @@ def error_print(message: str): def relay_controller(pin: int, state: str): if state == "True": - relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=False) + relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=True) relay.on() debug_print("Set relay-pin "+str(pin)+" to state True") elif state == "False": - relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=False) + relay = gpiozero.OutputDevice(pin, active_high=True, initial_value=True) relay.off() debug_print("Set relay-pin "+str(pin)+" to state False") else: