You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Can we add a parameter to the constructor of the Rev2mDistanceSensor class to to override the I2C address? We figured out a way to change the address of the device at power-up so this would be useful to enable multiple devices on the same I2C bus.
The text was updated successfully, but these errors were encountered:
We experimented with a multiplexer, but have since ruled it out due to the way the distance sensor code works. Since it spins up a thread to communicate with the sensors behind the scenes, it isn't going to be happy if it loses ability to talk with the sensors as the mux switches between sensors.
We have since modified the Rev2mDistanceSensor class and added functionality to the constructor to pass in an I2C address. If the address is different from the default, we call the function to change the address. This approach is working well. We're now bread boarding our hardware solution to power up the sensors one at a time in order to initialize and change the address of each sensor individually.
Once we have a solid solution we can upload our changes to the code and you can merge as you see fit.
Hello. Can we add a parameter to the constructor of the Rev2mDistanceSensor class to to override the I2C address? We figured out a way to change the address of the device at power-up so this would be useful to enable multiple devices on the same I2C bus.
The text was updated successfully, but these errors were encountered: