EasyManua.ls Logo

ST VL53L1X API - Reducing Driver Size

ST VL53L1X API
26 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 Reducing the driver size to its absolute minimum
Although ST have attempted to create a small driver, it might not be small enough for some applications. To
create the smallest possible driver, try the following approach:
Use the current driver and configure the parameters as required. Start ranging (to show that it works).
When satisfied that ranging works, dump the contents of the sensor from the location 0x2D through to 0x87.
Replace the default register settings in the the array VL51L1X_DEFAULT_CONFIGURATION[] which is
located in the file VL53L1X_api.c.
This makes your settings the default settings
Your main routine then needs only to call the the VL53L1X_SensorInit() function and
VL53L1X_StartRanging().
Most other functions can then be removed
UM2510
Reducing the driver size to its absolute minimum
UM2510 - Rev 1
page 14/26

Table of Contents

Related product manuals