Simple library for MAG3110 magenetometer as built into FRDM-KL46Z module;
Dependents: serialSENS magsensor_46_v2 fibbo_test_v1
Fork of MAG3110 by
Revision 5:888035fbef65, committed 2014-02-07
- Comitter:
- aaronice
- Date:
- Fri Feb 07 00:33:01 2014 +0000
- Parent:
- 4:cf40601402b7
- Commit message:
- Modified the I2C address for FRDM-KL46Z
Changed in this revision
MAG3110.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cf40601402b7 -r 888035fbef65 MAG3110.cpp --- a/MAG3110.cpp Fri May 24 20:16:24 2013 +0000 +++ b/MAG3110.cpp Fri Feb 07 00:33:01 2014 +0000 @@ -6,13 +6,13 @@ * Constructors ******************************************************************************/ MAG3110::MAG3110(PinName sda, PinName scl): _i2c(sda, scl), - _i2c_address(0x1D), _pc(NULL), _debug(false) + _i2c_address(0x0E<<1), _pc(NULL), _debug(false) { begin(); } MAG3110::MAG3110(PinName sda, PinName scl, Serial *pc): _i2c(sda, scl), - _i2c_address(0x1D), _pc(pc), _debug(true) + _i2c_address(0x0E<<1), _pc(pc), _debug(true) { begin(); }