VL53L5CX basic ranging doesn't return any results
For the past week or so I've been trying to interface this sensor. I've reached a point where I get no errors during the firmware download and initialisation of this sensor. Using the example, I then start ranging (which gives a 255 error?), but when use check_data_ready() it responds saying there is data to be read from the sensor. So, the next step is a call to get_ranging_data() which passes as well.
Despite all this, the results struct still remains empty of any values. That is to say, no targets are detected, no valid range measurements were taken. This makes no sense however, since I have my hand about 30cm from the sensor, which has a white ceiling as the background around 2m away. Lastly, using my phone camera I can see that the sensor is outputting every 1second, in accordance with the default frequency value.
On the topic of default values. I added all the "get" functions to verify the default parameters. All this passes with no errors and yet, the values returned don't match the default configuration parameters outlined in the datasheets and application notes. Ie: When I use get_frequency_hz(), instead of '1', it returns '26'.
I know there's a lot to go over here, but I'm hoping something jumps out at someone to offer some assistance. I'm losing my mind quite a bit here. Some other information. I'm bit banging an I2C communication to avoid buffer limitations, secondly, this runs at around 220KHz. Again, using a debugger and stepping through the initialisation gives zero errors. Is it just that 220khz clock rate a problem at all for getting results data?
