VL53L0X — distance [mm] (blocking) (vl53l0x_dist_mm)¶
What it does: Returns the blocking distance measurement from VL53L0X in millimeters (ping).

Inputs¶
- Field
ID: selection of initialized rangefinder instance.
Output¶
- Number: distance in mm from the current measurement.
When to use it¶
- When you need the freshest possible value and don't mind a short wait for the result.
- For more accurate decision making without working with the old value.
Tips and pitfalls¶
- The block is waiting for a valid measurement, so it can slow down the program loop.
- On very dark or sloping surfaces, the measurement may be less stable.
Usage example¶

Generated Python example¶
value = tof1.ping()