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 2:b45dbca259f8, committed 2017-05-22
- Comitter:
- bclaus
- Date:
- Mon May 22 15:18:15 2017 +0000
- Parent:
- 1:37096bc2cc39
- Child:
- 3:17c3c3f59c4d
- Commit message:
- working commit;
Changed in this revision
| L3GD20.cpp | Show annotated file Show diff for this revision Revisions of this file |
| L3GD20.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/L3GD20.cpp Wed Feb 03 21:02:50 2016 +0000
+++ b/L3GD20.cpp Mon May 22 15:18:15 2017 +0000
@@ -48,6 +48,9 @@
char reg_v;
_L3GD20.frequency(200000);
+ reg_v = 0;
+ write_reg(GYR_ADDRESS,L3GD20_LOW_ODR,reg_v);
+
// 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;
--- a/L3GD20.h Wed Feb 03 21:02:50 2016 +0000 +++ b/L3GD20.h Mon May 22 15:18:15 2017 +0000 @@ -62,6 +62,7 @@ #define L3GD20_INT1_THS_ZH 0x36 #define L3GD20_INT1_THS_ZL 0x37 #define L3GD20_INT1_DURATION 0x38 +#define L3GD20_LOW_ODR 0x39 // D20H /** Interface library for the ST L3GD20 3-axis gyro *
