Interface library for STMicro LSM303DLH 3-axis magnetometer w/ 3-axis acceleromter. Computes magnetic heading.

Fork of LSM303DLH by Michael Shimniok

Files at this revision

API Documentation at this revision

Comitter:
paulcox
Date:
Wed Oct 15 15:01:31 2014 +0000
Parent:
2:aea5caec809c
Commit message:
Program tested with all Nucleo boards updated to 2j23m6 firmware and confirmed as working (led blinks and magnetometer info received via I2C)

Changed in this revision

LSM303DLH.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r aea5caec809c -r 9c3f240d14bf LSM303DLH.cpp
--- a/LSM303DLH.cpp	Tue Apr 12 18:21:44 2011 +0000
+++ b/LSM303DLH.cpp	Wed Oct 15 15:01:31 2014 +0000
@@ -41,7 +41,7 @@
 
 #define FILTER_SHIFT 6      // used in filtering acceleromter readings
 
-const int addr_acc = 0x30;
+const int addr_acc = 0x32;
 const int addr_mag = 0x3c;
 
 enum REG_ADDRS {