VL53L1X - GPIO interrupt works when range status is different from 0
Hello.
I have VL53L1X working in window mode with GPIO polarity active low:
- Window mode = 3 (within the distance range (min/max)).
- Min = 50mm
- Max = 200 mm
It is working well. If my hand is:
- Within window: GPIO interrupt goes up and down
- Below or beyond window: GPIO is high all the time
The problem comes when there is nothing in front of the sensor and range status is 4 (phase fail). In this cases, GPIO interrupt still works, causing my code to malfunction.
Why does GPIO works if distance is outside window thresholds and range status is different from 0?
