From 82f31454d66270042845e56ccdf9241b359fe2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 12 Jul 2022 10:36:38 +0200 Subject: [PATCH] changed gpio to bcm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index ffb619a..c73dfab 100644 --- a/main.py +++ b/main.py @@ -44,8 +44,8 @@ def relay_controller(pin: int, status: str): def get_water_level(): GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) - GPIO_TRIGGER = 18 - GPIO_ECHO = 24 + GPIO_TRIGGER = 24 + GPIO_ECHO = 8 GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_ECHO, GPIO.IN) GPIO.output(GPIO_TRIGGER, True)