Closed TorbenSchreiter closed 4 years ago
For what it is worth, I made a similar change, the main difference was I put the option Wire object on the constructor instead of on the init. Either is fine.
I went ahead and made a Pull Request (#45) to see if they are receptive to this.
There are some other features I am going to play with as well. Trying to decide to do it here or with the Adafruit_VL5310X library, which supports this, and is made up the the ST SDK, and mainly only has a single Range function exported as part of the main .h/cpp files.
Hi, Torben.
We just merged KurtE's pull request, although we ended up changing it so selecting a different I2C bus is done with separate functions (setBus()
and getBus()
) instead of through the constructor or init()
. Thanks for your contribution though!
Kevin
Hi there,
for an ESP32-based project, we needed a way to distribute sensors on the two separate hardware wires (
Wire.
andWire1.
). The modified version of the lib is attached (VL53L0X-2xI2C.zip).@kevin-pololu Changes are straight forward. Would be great if this could be integrated into the master branch at some point.
How to use:
Cheers, Torben