Built from datasheet for 9-DOF sensor stick from SparkFun.
Fork of HMC5883L by
Diff: HMC5883L.cpp
- Revision:
- 5:9bf3459391e8
- Parent:
- 4:bc4e1201e092
--- 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 }