adafruit / Adafruit_INA219

INA219 Current Sensor
Other
204 stars 145 forks source link

Wire on due #13

Closed antodom closed 6 years ago

antodom commented 8 years ago

I have modified the library in order to be able to use the second I2C interface available on the DUE, corresponding to Wire1 on the Arduino DUE. Now we can pass a TwoWire object at the constructor of Adafruit_INA219 class. By default the object the library uses is Wire. I have tested the changes and they works satisfactorily.

deanm1278 commented 6 years ago

thanks! the library now supports passing in of a TwoWire object