Extended driver to be able to configure the accelerometer for tap detection, orientation detection, and data ready interrupts.
Dependents: FRDM-KL25Z_secret_knock bluetooth_robo01 robo_01
Fork of MMA8451Q by
Diff: MMA8451Q.cpp
- Revision:
- 7:e71c4d6398ea
- Parent:
- 6:2b68086a26ff
- Child:
- 8:018aea85c0db
diff -r 2b68086a26ff -r e71c4d6398ea MMA8451Q.cpp --- a/MMA8451Q.cpp Wed Feb 27 04:04:45 2013 +0000 +++ b/MMA8451Q.cpp Wed Feb 27 04:13:31 2013 +0000 @@ -16,6 +16,9 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/* Several bits and pieces taken from MMA8452Q basic example code by Nathan Seidle at SparkFun under Beerware license */ +/* If you see him, buy him a beer */ + #include "MMA8451Q.h" #define REG_WHO_AM_I 0x0D