Include the SparkFun_MAG3110 header file
create an instance : MAG3110 mag = MAG3110()
Initialize the Object: mag.initialize();
Call member functions e.g.: mag.readMag(&x, &y, &z);
Thus leading to the rWire Master I create, clashing with other I2C masters created by libraries. And so I either need the library wrapped or I must manually communicate with all other I2C devices using my own rWire code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.