The initVL53L0X method in the VL53L0X I2C driver writes an insane amount of registers with no comments indicating what those writes are for and why they're needed. Due to each I2C command the Expansion Hub taking about 3ms, the "responsiveness" of pressing "init" for the OpMode is dramatically reduced, adding like 500ms of latency.
The
initVL53L0X
method in the VL53L0X I2C driver writes an insane amount of registers with no comments indicating what those writes are for and why they're needed. Due to each I2C command the Expansion Hub taking about 3ms, the "responsiveness" of pressing "init" for the OpMode is dramatically reduced, adding like 500ms of latency.Is there any way for this to be optimized a bit?