From a502835062eb43fa43c2b0c5ffc28158d8700394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 11 Jul 2022 01:18:12 +0200 Subject: [PATCH] added boardmode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.py b/test.py index 04c007a..2b8db47 100644 --- a/test.py +++ b/test.py @@ -16,6 +16,8 @@ global GPIO import RPi.GPIO as GPIO import time +GPIO.setmode(GPIO.BCM) + GPIO_TRIGGER = 18 GPIO_ECHO = 24 GPIO.setup(GPIO_TRIGGER, GPIO.OUT)