Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 721 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 721 Bytes

VL53L4CD

Pure MicroPython driver for the VL53L4CD ToF distance sensor, ported from Adafruit's CircuitPython driver. (Tested on RPi Pico W)

Depends on our port of Adafruit's i2c_device CircuitPython library (i2c_device.py must be in the same directory as vl53l4cd.py).

Example usage is in ./test.py.

An additional get_distance() method is provided to hide the usage of clear_interrupt and waiting for new data in a loop (very specific to AHS Electronics Workshop class). It additionally ignores all OSErrors via try-catch, and calls get_distance() recursively if one is encountered.