Hi, I want to use the VL53L1x with a Esp32-S2 and micro python, I should be able to use with the esp?
3 Likes
Hi Rick,
Yeah it will work no worries!
You’ll have to specify the bus, sda and scl pins and freq, example code can be found on the Git: GitHub - CoreElectronics/CE-PiicoDev-VL53L1X-MicroPython-Module: Firmware repo for the Core Electronics PiicoDev Laser Distance Sensor VL53L1X
The initialisation might look like this:
from machine import Pin
distSensor = PiicoDev_VL53L1X(bus=0, sda=Pin(16), scl=Pin(17), freq=400000)
The sda and scl pins can be (mostly) whatever on the ESP32’s thanks to the bus matrix.
2 Likes