From 9195ff6cc6264d1ae2b3cee2b7911144e20ec0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 13 Jul 2022 10:16:12 +0200 Subject: [PATCH] changed gpio pin num from bcm to board MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 518aeb9..752f0b1 100644 --- a/main.py +++ b/main.py @@ -13,10 +13,10 @@ except ImportError: print(ImportError) exit() -RELAY_PIN_CH_1 = 4 -RELAY_PIN_CH_2 = 17 -RELAY_PIN_CH_3 = 27 -RELAY_PIN_CH_4 = 11 +RELAY_PIN_CH_1 = 7 +RELAY_PIN_CH_2 = 11 +RELAY_PIN_CH_3 = 13 +RELAY_PIN_CH_4 = 15 global relay_ch_1 relay_ch_1 = gpiozero.OutputDevice(RELAY_PIN_CH_1, active_high=True, initial_value=False)