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
[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 https://github.com/ARMmbed/mbed-os/commit/e802b255bef87b44a9ea121a0b7d7c7d1f4f9729#diff-5d4e71eefaefc629a9b6aab2d3c90c6e… 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.