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.
Dependencies: FSR LIS3DH USBDevice mbed
Fork of MMA8452_Demo by
Revision 2:0630128bdb32, committed 2014-03-05
- Comitter:
- ashleymills
- Date:
- Wed Mar 05 15:36:30 2014 +0000
- Parent:
- 1:e9981919b524
- Child:
- 3:2a8e59a590db
- Commit message:
- Updated child.
Changed in this revision
| MMA8452.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA8452.lib Wed Mar 05 15:04:45 2014 +0000 +++ b/MMA8452.lib Wed Mar 05 15:36:30 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/ashleymills/code/MMA8452/#4bd8b4cd479d +http://mbed.org/users/ashleymills/code/MMA8452/#7620a11149b8
--- a/main.cpp Wed Mar 05 15:04:45 2014 +0000
+++ b/main.cpp Wed Mar 05 15:36:30 2014 +0000
@@ -162,7 +162,9 @@
sampleMMA8452Counts(&acc,100);
LOG("Samping gravities");
- sampleMMA8452Gravities(&acc,100);
+ acc.setBitDepth(MMA8452::BIT_DEPTH_8);
+ acc.setDynamicRange(MMA8452::DYNAMIC_RANGE_4G);
+ sampleMMA8452Gravities(&acc,2000);
return true;
}
