Page 1 of 1

VL53L0X V2 Laser ToF Distance Coding

Posted: Tue Nov 03, 2020 2:14 am
by pyc_18
Hi guys, has anyone done a coding program using L53L0X V2 Laser ToF Distance on the microbit? I could only get my hands on the code used on Arduino Boards.

Re: VL53L0X V2 Laser ToF Distance Coding

Posted: Tue Nov 03, 2020 3:43 am
by jimmo
It's an I2C sensor so it should be fairly straightforward to adapt other I2C drivers written for micro:bit.

See
https://github.com/johnbryanmoore/VL53L ... VL53L0X.py
for a reference Python implementation. You'll need to modify this to use the micro:bit I2C API documented here: https://microbit-micropython.readthedoc ... 1/i2c.html