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)