VL53L0X Range Sensor [](https://travis-ci.org/Tinkertanker/pxt-range-vl53l0x)
May 17, 2018 ยท View on GitHub
This is the MakeCode package for the VL53L0X Time-of-Flight Ranging Sensor.
Hardware Setup
- Connect SCL, SDA to the breakout board's I2C pins.
- Connect VCC, GND to the respective pins on the breakout board.
Blocks
Initialise sensor
Initialises the ToF Ranging Sensor.
Rangefinder.init()
This block must be placed before the distance block.
Distance
Returns the distance measured by the range finder in millimeters.
Rangefinder.distance()
License
MIT
Supported targets
- for PXT/microbit