I'm trying to connect 2 HMC5883 chips to a DUE to pull magnetometer data simultaneously on both chips. This is using the Adafruit sensor library and the Adafruit HMC5883 library.
I am trying to use use SDA/SCL and SDA1/SCL1, unable to figure out how to call wire1 to get the data off SDA1/SCL1 using these libraries?
I am trying to use use SDA/SCL and SDA1/SCL1, unable to figure out how to call wire1 to get the data off SDA1/SCL1 using these libraries?
You will have to modify the library to accept the corresponding object (instance of TwoWire class) in the constructor and then use that in all methods instead of the hardcoded Wire currently in use.