Skip to content

Tinkercademy Makecode Package for the VL53L0X Time-of-Flight Range Sensor. (beta)

License

Notifications You must be signed in to change notification settings

tinkertanker/pxt-range-vl53l0x

Repository files navigation

VL53L0X Range Sensor Build Status

This is the MakeCode package for the VL53L0X Time-of-Flight Ranging Sensor.

Hardware Setup

  1. Connect SCL, SDA to the breakout board's I2C pins.
  2. 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

About

Tinkercademy Makecode Package for the VL53L0X Time-of-Flight Range Sensor. (beta)

Resources

License

Stars

Watchers

Forks

Packages

No packages published