test

Fork of HMC5883L by Oskar Lopez de Gamboa

Files at this revision

API Documentation at this revision

Comitter:
s1200058
Date:
Fri Aug 14 04:54:47 2015 +0000
Parent:
5:c9ce1eeaf001
Commit message:
test

Changed in this revision

HMC5883L.cpp Show annotated file Show diff for this revision Revisions of this file
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