Built from datasheet for 9-DOF sensor stick from SparkFun.
Fork of HMC5883L by
Revision 5:9bf3459391e8, committed 2016-05-30
- Comitter:
- Decimus
- Date:
- Mon May 30 08:09:58 2016 +0000
- Parent:
- 4:bc4e1201e092
- Commit message:
- [+]
Changed in this revision
HMC5883L.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r bc4e1201e092 -r 9bf3459391e8 HMC5883L.cpp --- a/HMC5883L.cpp Tue Nov 06 17:35:51 2012 +0000 +++ b/HMC5883L.cpp Mon May 30 08:09:58 2016 +0000 @@ -50,7 +50,7 @@ void HMC5883L::init() { // init - configure your setup here - setConfigurationA(AVG8_SAMPLES | OUTPUT_RATE_15); // 8 sample average, 15Hz, normal mode + setConfigurationA(AVG2_SAMPLES | OUTPUT_RATE_75); // 8 sample average, 15Hz, normal mode setConfigurationB(0x20); // default setMode(CONTINUOUS_MODE); // continuous sample mode }