test

Fork of HMC5883L by Oskar Lopez de Gamboa

Revision:
6:f9836a4caacf
Parent:
5:c9ce1eeaf001
diff -r c9ce1eeaf001 -r f9836a4caacf HMC5883L.cpp
--- a/HMC5883L.cpp	Tue Dec 10 10:58:28 2013 +0000
+++ b/HMC5883L.cpp	Fri Aug 14 04:54:47 2015 +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(AVG8_SAMPLES | OUTPUT_RATE_75); // 8 sample average, 15Hz, normal mode
     setConfigurationB(0x20); // default gain
     setMode(CONTINUOUS_MODE); // continuous sample mode
     wait(0.006);//wait 6ms as told in the datasheet