2025-07-09 8:48 AM - last edited on 2025-07-09 10:47 AM by Peter BENSCH
I'm trying to port the VL53L0X library for use with the RP Pico W for academic reasons, but I can't map the calls between the VL53L0X SDK and the RP Pico W SDK.
For example, the function
int32_t VL53L0X_read_multi(uint8_t address, uint8_t index, uint8_t *pdata, int32_t count)
would theoretically need to be adjusted to call the function
int i2c_read_blocking(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop)
Attempt to read specified number of bytes from address, blocking.
Am I right? Or should it be another way?
Thanks