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.
Dependents: minimu-9v2 air_zuma Fish_2014Fall DiscoveryF3-LSM303_Compass ... more
Fork of LSM303DLH by
Revision 5:ee458711d467, committed 2016-02-03
- Comitter:
- bclaus
- Date:
- Wed Feb 03 20:08:41 2016 +0000
- Parent:
- 4:612f7d5a822d
- Commit message:
- initial
Changed in this revision
| LSM303DLHC.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LSM303DLHC.cpp Thu Feb 21 00:20:17 2013 +0000
+++ b/LSM303DLHC.cpp Wed Feb 03 20:08:41 2016 +0000
@@ -80,11 +80,11 @@
_LSM303(sda, scl)
{
char reg_v;
- _LSM303.frequency(100000);
+ _LSM303.frequency(200000);
reg_v = 0;
- reg_v |= 0x27; /* X/Y/Z axis enable. */
+ reg_v |= 0x37; /* X/Y/Z axis enable. */
write_reg(addr_acc,CTRL_REG1_A,reg_v);
reg_v = 0;
@@ -94,7 +94,7 @@
/* -- mag --- */
reg_v = 0;
- reg_v |= 0x04 << 2; /* Minimum data output rate = 15Hz */
+ reg_v |= 0x06 << 2; /* Minimum data output rate = 15Hz */
write_reg(addr_mag,CRA_REG_M,reg_v);
reg_v = 0;
