IDD Summer 2017 / Mbed 2 deprecated test

Dependencies:   FSR LIS3DH USBDevice mbed

Fork of MMA8452_Demo by Ivan Rush

Files at this revision

API Documentation at this revision

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;
 }