2019-12-09 02:18 PM
2019-12-16 07:48 AM
The first thing you have to do is establish communication over the I2C. The I2C spec is somewhat confusing until you get used to it. Best to find an I2C example for your processor.
The libraries provided with the VL53L0X only go as far as making the I2C_read and I2C_write calls leaving you to make the connection between the I2C calls and your hardware. That's why the Platform.c file is left pretty much empty.
(ST sells it's own microprocessors - and they are not pleased when we support the competition. So we chose to simply make you do it.)
Most MCU vendors will have good examples however.
If you look into the STSW-img005 directory you should see some examples.
I like vl53l0x_SingleRanging_Example.c
It should get you started - I'd just use that.