VL53L1X: Interrupt-Pin stays low after first ranging
Hello,
I am desperate, have been looking for the cause of a malfunction for quite a long time now.
I use the VL53L1X with the ULD API.
My code looks like the example code:
- Enable EN-Pin
- wait for CheckBootState == ok
- SensorInit (Config like ULD, no changes)
- SetDistanceMode: 2
- SetTimingBudgetInMs: 100
- SetInterMeasurementInMs: 100
- StartRanging
An IRQ occured,
In ISR, I read the distance and clear the interrupt:
- wait for ChecKForDataReady != 0
- GetDistance: 0x0B5E (no overlapping of the sensor, may be ok(?))
- ClearInterrupt
After that, no more IRQ occured, the GPIO pins stayed at low level.
When I hold my hand over the sensor, the measured distance is much smaller. The sensor should therefore work.
Why then does it not trigger any further interrupts?
Any ideas?
Best regards,
Karsten
