Posted on May 29, 2018 at 04:06
Hi all
In lieu of the VL53L0X API being so awkward to use, I've made an effort to port the Pololu version of the VL53L0X library to STM32-compatible C code, using HAL functions to manage I2C communication.
Us...
@AMaci.14 I never had the 20-second problem, but it seems like it's common to the code provided by vitalij.zhurik. How did you solve it? @Mahdi Bayati has the same problem you did.
Hi Sergii and VitalijYes I found the problem a while back - sorry for not updating the thread.The code itself does work. The problem was in my custom I2C functions.Writebyte worked correctlyHOWEVER when writing more than one byte ( e.g. 16 bits) a br...
Posted on June 04, 2018 at 11:38Hi Primoz BThanks for offering to help.Please see the updated attachment which now has the I2CDev library, as well as the main.c of my project.Cheers