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 L3GD20 by
Revision 1:37096bc2cc39, committed 2016-02-03
- Comitter:
- bclaus
- Date:
- Wed Feb 03 21:02:50 2016 +0000
- Parent:
- 0:62dfce144cf7
- Child:
- 2:b45dbca259f8
- Commit message:
- update for L3GD20H;
Changed in this revision
| L3GD20.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/L3GD20.cpp Thu Feb 21 00:21:23 2013 +0000
+++ b/L3GD20.cpp Wed Feb 03 21:02:50 2016 +0000
@@ -46,12 +46,12 @@
_L3GD20(sda, scl)
{
char reg_v;
- _L3GD20.frequency(100000);
+ _L3GD20.frequency(200000);
- // 0x0F = 0b00001111
- // Normal power mode, all axes enabled
+ // 0x6F
+ // DR = 01 (200 Hz ODR); BW = 10 (50 Hz bandwidth); PD = 1 (normal mode); Zen = Yen = Xen = 1 (all axes enabled)
reg_v = 0;
- reg_v |= 0x0F;
+ reg_v |= 0x6F;
write_reg(GYR_ADDRESS,L3GD20_CTRL_REG1,reg_v);
