Works with 8g

Fork of MMA8452 by Ashley Mills

Files at this revision

API Documentation at this revision

Comitter:
yanay_amir
Date:
Mon Jun 27 19:21:51 2016 +0000
Parent:
21:a92a632a0cc7
Commit message:
Mohamad

Changed in this revision

MMA8452.cpp Show annotated file Show diff for this revision Revisions of this file
MMA8452.h Show annotated file Show diff for this revision Revisions of this file
diff -r a92a632a0cc7 -r 0d00605bf830 MMA8452.cpp
--- a/MMA8452.cpp	Fri Mar 07 14:53:40 2014 +0000
+++ b/MMA8452.cpp	Mon Jun 27 19:21:51 2016 +0000
@@ -43,7 +43,7 @@
    _bitDepth = BIT_DEPTH_UNKNOWN;
    setBitDepth(BIT_DEPTH_12);
    _dynamicRange = DYNAMIC_RANGE_UNKNOWN;
-   setDynamicRange(DYNAMIC_RANGE_2G);
+   setDynamicRange(DYNAMIC_RANGE_8G);
    
    MMA8452_DBG("Done");
 }
diff -r a92a632a0cc7 -r 0d00605bf830 MMA8452.h
--- a/MMA8452.h	Fri Mar 07 14:53:40 2014 +0000
+++ b/MMA8452.h	Mon Jun 27 19:21:51 2016 +0000
@@ -118,7 +118,7 @@
        enum DynamicRange {
            DYNAMIC_RANGE_2G=0x00,
            DYNAMIC_RANGE_4G,
-           DYNAMIC_RANGE_8G,
+           DYNAMIC_RANGE_8G=0x10,
            DYNAMIC_RANGE_UNKNOWN
        };