I just got the VL53L1X ToF sensor and I have a k64f board using ARMmbed. I have been searching all day long, but I could not find a library for the board for mbed, does anyone know if there is any library available for this sensor on mbed?
There is two libraries now.
The more simple one:
And a more complex one:
Great! Just use them in project as an option in platformio.ini
[env:myenv]
board = ..
lib_deps =
https://os.mbed.com/users/jvfausto/code/VL53L1X/
I’ve been playing around a lot with the library but I can’t seem to get it working with the MAX32630. I keep getting the following error:
mbed assertation failed: stop != 0, file: /extras/mbed-os.lib/targets/TARGET_Maxim/TARGET_MAX32630/i2c_api.c, line 103
Do you have any ideas on how to fix this? Thanks
This is a bug in mbed-os fixed by Remove automatic I2C stop after each read · ARMmbed/mbed-os@e802b25 · GitHub… With which ancient mbed-os are you working?
Is this library compatible with the stm X-NUCLEO-53L1A1X?
It should work, I moved onto using STM boards since the summer. I have updated the code to support multiple ToF sensors, and added a running median filter.