changed gpio to bcm

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-12 10:36:38 +02:00
parent 719f7bf6b9
commit 82f31454d6
1 changed files with 2 additions and 2 deletions

View File

@ -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)