Arduino library to support the VL53L1X Time-of-Flight and gesture-detection sensor
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