This is a library for the Adafruit VL53L1X time-of-flight breakout:
Check out the links above for our tutorials and wiring diagrams. This chip uses I2C to communicate
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries. Uses ST's VL53L1X underlying api implementation BSD license, all text above must be included in any redistribution
This sensor uses I2C to communicate. And I2C instance is required to access to the sensor.
The API provides simple distance measure, single swipe gesture detection, directional (left/right) swipe gesture detection and single tap gesture detection.
The maximum detection distance is influenced by the color of the target and the indoor or outdoor situation due to absence or presence of external infrared. The detection range can be comprise between ~40cm and ~400cm. (see chapter 5 of the VL53L1X datasheet). The library should work also with standard Arduino boards. In this case you just need to adjust the code in the sketch in order to use the correct Wire instance and the correct pin number for XSHUT and GPIO1 pins.
You can find the source files at https://github.com/stm32duino/VL53L1X
The VL53L1X datasheet is available at https://www.st.com/content/st_com/en/products/imaging-and-photonics-solutions/proximity-sensors/vl53l1x.html