Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-12 09:06:53 +02:00
parent cef86c8499
commit 9fba01cbc3
1 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@ global GPIO
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setmode(GPIO.BOARD)
GPIO_TRIGGER = 24
GPIO_ECHO = 18
GPIO_TRIGGER = 18
GPIO_ECHO = 24
GPIO.setup(GPIO_TRIGGER, GPIO.OUT)
GPIO.setup(GPIO_ECHO, GPIO.IN)