STM32L0 Disco - VL53L1X unable to communicate with sensor via API.
I'm not an embedded Dev by any means, just trying to throw together a low energy project and I've been racking my head around this for a few weeks now, I can't get the STM32L0 to communicate with my VL53L1X via the provided API.
I'll post code snippets here shortly, but I've been able to communicate with it with the HAL read/write commands and do not get a HAL_ERROR (confirmed by altering device address and the HAL_ERROR was returned).
I'm able to run all of the API methods without getting an error status code but when I go to actually read the measurements it's negative, completely off (100s MM off) and it will always return the same measurement regardless of clear interrupt and start measurement.
If anyone has some insights into this let me know. I've ordered a logic analyzer to ensure that the API is actually doing anything with the sensor.
Also if anyone knows where I might be able to find any resources to using this sensor via HAL commands instead of the API that would be great. Only things I can seem to find online are forum posts here where people "figured it out".
