Closed dcliftreaves closed 2 years ago
thanks! i think maybe better to have a function like setContinuous() that you can set true/false to change between triggered and continous? i think that may be a common scenario. would you be up to switching the code up a bit?
I have done what you have asked for but haven't done extensive testing on it like I had with the previous code.
thank you! next time we do a 'sweep' of this lirbary we'll pick up and test the PR :)
How about providing this by using the existing method:
boolean startRangeContinuous(uint16_t period_ms = 50);
and enabling it when period_ms
is passed in as 0
?
And to be clear, the goal here is to provide ability to set read mode to one shown in rectangle?
Continuous reading makes a big difference in latency when reading from N devices. It is the difference of something like 33ms per read to basically instant. (Instant because you are always burning power and reading asynchronously to the main MCU and the MCU just picks up whatever was the last reading from the VL53L0X device.)