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

Dependents:   FCFS

Fork of LSM303DLH by Michael Shimniok

Revision:
2:aea5caec809c
Parent:
1:48d83c63d1d9
--- a/LSM303DLH.h	Fri Apr 08 07:29:51 2011 +0000
+++ b/LSM303DLH.h	Tue Apr 12 18:21:44 2011 +0000
@@ -63,7 +63,6 @@
  */
 class LSM303DLH {
     public:
-    
         /** Create a new interface for an LSM303DLH
          *
          * @param sda is the pin for the I2C SDA line
@@ -115,6 +114,12 @@
          */
         float heading(vector from);
     
+        /** sets the I2C bus frequency
+         *
+         * @param frequency is the I2C bus/clock frequency, either standard (100000) or fast (400000)
+         */
+        void frequency(int hz);
+    
     private:
         I2C _compass;
         float _offset_x;