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 Emilio Monti

Files at this revision

API Documentation at this revision

Comitter:
maclobdell
Date:
Wed Feb 27 04:04:45 2013 +0000
Parent:
5:c43505b5bc31
Child:
7:e71c4d6398ea
Commit message:
1st working version

Changed in this revision

MMA8451Q.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MMA8451Q.cpp	Wed Feb 27 03:58:53 2013 +0000
+++ b/MMA8451Q.cpp	Wed Feb 27 04:04:45 2013 +0000
@@ -35,8 +35,7 @@
 
 MMA8451Q::MMA8451Q(PinName sda, PinName scl, int addr) : m_i2c(sda, scl), m_addr(addr)
 {
-  //need to clear registers before writing because they only get cleared on a power cycle
-  //need to implement that
+  //To-do: need to clear registers before writing because they only get cleared on a power cycle
   
    modeStandby();  // Must be in standby to change registers