Hi,
I am building a line-following robot that I want to stop when it detects on object in front of it using the VL6810X sensor. It should stop when it detects an object that is 5 cm in front of it. I am trying to use an interrupt to do this but have not been successful just trying to poll the reading. How can I make this work using an interrupt? I already tried polling for when a reading is ready and it still has not worked.
Thanks,
cadeg