This is the MakeCode package for the VL53L0X Time-of-Flight Ranging Sensor.
- Connect SCL, SDA to the breakout board's I2C pins.
- Connect VCC, GND to the respective pins on the breakout board.
Initialises the ToF Ranging Sensor.
Rangefinder.init()
This block must be placed before the distance
block.
Returns the distance measured by the range finder in millimeters.
Rangefinder.distance()
MIT
- for PXT/microbit