Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LSM303DLHC by
Diff: LSM303DLH.h
- 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;
