MAG3110 Virgo robot adaptation
Fork of MAG3110 by
Diff: MAG3110.cpp
- Revision:
- 14:73a4a09a49af
- Parent:
- 12:2680e94139bb
- Child:
- 15:58c62b985e68
diff -r b293e595ea95 -r 73a4a09a49af MAG3110.cpp --- a/MAG3110.cpp Tue Aug 23 03:54:19 2016 +0000 +++ b/MAG3110.cpp Fri Sep 09 10:48:07 2016 +0000 @@ -17,7 +17,7 @@ _i2c.write(MAG_ADDR, cmd,2); cmd[0] = MAG_CTRL_REG2; - cmd[1] = 0x80; //Set Automatic Magnetic Sensor Reset bit + cmd[1] = 0x90; //Set Automatic Magnetic Sensor Reset bit, and reset overexposure _i2c.write(MAG_ADDR, cmd, 2); cmd[0] = MAG_CTRL_REG1;