VL53L0X Api port for Raspberry Pi
Switch branches/tags
Nothing to show
Clone or download


VL53L0X on Raspberry Pi

This project helps to build and use the VL53L0X API (provided by ST Microelectronics) on Raspberry Pi.




API_DIR=path/to/the/api/dir make
  • If you are cross compiling it would be:
API_DIR=path/to/the/api/dir CROSS_COMPILE=arm-linux-gnueabihf- make
  • Next, compile the example programs. Again, on a raspberry pi:
API_DIR=path/to/the/api/dir make examples
  • If you cross compile:
API_DIR=path/to/the/api/dir CROSS_COMPILE=arm-linux-gnueabihf- make examples
  • If you did cross compile, copy the examples programs from the bin folder to your Raspberry Pi. Otherwise just navigate to the bin folder on your raspberry pi and execute:


  • run the one of the example programs and enjoy!

Note : I know there are kernel driver sources in the API sources, I don't want to use it because it is easier to compil/debug/test/install... a userspace program than a kernel module (high perf is not necessary here).

alt text