added boardmode

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-11 01:18:12 +02:00
parent 082094ccc5
commit a502835062
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ global GPIO
import RPi.GPIO as GPIO import RPi.GPIO as GPIO
import time import time
GPIO.setmode(GPIO.BCM)
GPIO_TRIGGER = 18 GPIO_TRIGGER = 18
GPIO_ECHO = 24 GPIO_ECHO = 24
GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_TRIGGER, GPIO.OUT)