From 719f7bf6b9b223d8551b36c2e35921b5de2f75dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 12 Jul 2022 10:30:51 +0200 Subject: [PATCH] fixxed typo 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, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index a6c3ff1..ffb619a 100644 --- a/main.py +++ b/main.py @@ -42,7 +42,7 @@ def relay_controller(pin: int, status: str): #ultrasonic def get_water_level(): - GPIO.setmode(GPIO.BMC) + GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO_TRIGGER = 18 GPIO_ECHO = 24