Fixed sensor usage

This commit is contained in:
Maximilian Giller 2023-10-09 18:12:16 +02:00
parent aba9014145
commit 5e81fecb78

View file

@ -7,6 +7,7 @@ DELAY_SECONDS = 1
sensor = VL53L1XSensor() sensor = VL53L1XSensor()
sensor.open()
while True: while True:
sensor.setDirection(Directions.INSIDE) sensor.setDirection(Directions.INSIDE)