View on GitHub

vl53l1x-microbit

MakeCode extension for VL53L1X

vl53l1x-microbit

Open this page at https://healthywalk.github.io/vl53l1x-microbit/

Summary

This extension supports the VL53L1X time-of-flight ranging sensor in micro:bit MakeCode programming.
The extension is available for almost all VL53L1X breakouts.

Pin connection

micro:bit VL53L1X breakout
P19 SCL
P20 SDA
3V +V (VIN, Vcc)
GND (0V) GND
NC XSHUT
NC GPIO1

Methods

Example

VL53L1X.init()
basic.forever(function () {
    serial.writeLine(VL53L1X.readSingle())
})

Use as Extension

This repository can be added as an extension in MakeCode.

Metadata (used for search, rendering)