This repository provides a minimalistic POSIX-compliant port of the official STMicroelectronics VL53L4CX API (v1.2.14) with Raspberry Pi support.
Clone the repo and build
git clone https://github.com/coderitter/vl53lx-pi.git
cd vl53lx-pi
makeThen you can run it using:
./build/vl53lx_exampleClone the repo and build
git clone https://github.com/coderitter/vl53lx-pi.git
cd vl53lx-pi
make build/libvl53l4cx.a You can now build your own software by including the following paths:
Api/core/inc/Api/platform/inc/
and linking against the library build/libvl53l4cx.a.
Refer to the example code ApiExample/vl53lx_example.c to see how to access the sensor.
GPIO handling (e.g. XSHUT pin control for multi-sensor setups) is currently not implemented in this repository.
If you are using only one VL53L4CX sensor, no GPIO code is required and the driver works without modification. GPIO support is only necessary when multiple sensors share the same I²C bus and need address reassignment.
This project is maintained by Coderitter, a company specializing in AIoT devices for industrial monitoring.
We design and manufacture complete edge devices equipped with up to five VL53L4CX sensors, capable of processing sensor data locally or streaming it to a server.
If you are interested in a production-ready solution or custom hardware, see: https://www.coderitter.io/smart-sensor-hub