CPython or MicroPython support for the VL53L8CX

Hi, I was wondering if existing CPython or MicroPython code written for the VL53L5CX would also function for the VL53L8CX. And if not, do you know of any available implementations in Python?

Thanks!

Hello.

The VL53L8CX API is very similar to the VL53L5CX API (and the VL53L7CX API as well), so it is generally possible to interchange those sensors with minimal software changes. I’m not sure what CPython or MicroPython programs you are using though. Depending on the particular code you might need to make some modifications, and we do not have specific guidance for that.

I do not know of any VL53L8CX implementations in Python.

- Patrick

Thanks Patrick. I’d originally bought the SparkFun VL53L5CX when it first came out, but it only had Arduino support at the time. I think (if I remember right) I’m using the Pimoroni CPython code for their carrier board, and ported it to MicroPython myself once I had it running on the Raspberry Pi. So if, apart from the I2C address, the VL53L8CX is roughly compatible, it sounds like I could just swap it in for the VL53L5CX on the robot.