I’m wondering if there’s an easy way to specify which of Wire.h’s “Wires” an MS5837 pressure sensor uses in Arduino code.
I’m trying to connect four different MS5837s, each to their own respective I2C port on a Teensy 3.6 (which conveniently has four I2C ports). The libraries make it very easy to connect one of them, however, the MS5837 library always specifies the use of just “Wire” in its function calls. Meanwhile, the Wire.h library allows for the use of multiple ports by using Wire, Wire1, Wire2, etc. in the function calls.
Has anyone encountered this problem and can offer a quick solution?