From 36f7bb78f43a1d804b0ae7bf5dfb1590d8eec9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 14 Jul 2022 01:06:09 +0200 Subject: [PATCH] changed pin numbers 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..9ad6b3c 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 = "BOARD7" +RELAY_PIN_CH_2 = "BOARD11" +RELAY_PIN_CH_3 = "BOARD13" +RELAY_PIN_CH_4 = "BOARD23" global relay_ch_1 relay_ch_1 = gpiozero.OutputDevice(RELAY_PIN_CH_1, active_high=True, initial_value=False)