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
Revision 8:018aea85c0db, committed 2013-03-15
- Comitter:
- maclobdell
- Date:
- Fri Mar 15 18:49:32 2013 +0000
- Parent:
- 7:e71c4d6398ea
- Commit message:
- updated header information
Changed in this revision
MMA8451Q.cpp | Show annotated file Show diff for this revision Revisions of this file |
MMA8451Q.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA8451Q.cpp Wed Feb 27 04:13:31 2013 +0000 +++ b/MMA8451Q.cpp Fri Mar 15 18:49:32 2013 +0000 @@ -16,8 +16,11 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/* Driver extended by Mac Lobdell */ +/* Added tap detection, orientation, and data ready interrupt capability */ +/* Added capability to check interrupt source, tap type, and orientation */ +/* See MMA8451Q.h for configuration to enable/disable different features */ /* 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"
--- a/MMA8451Q.h Wed Feb 27 04:13:31 2013 +0000 +++ b/MMA8451Q.h Fri Mar 15 18:49:32 2013 +0000 @@ -16,6 +16,11 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/* Driver extended by Mac Lobdell */ +/* Added initialization of many features including tap, orientation, and data ready interrupts */ +/* Added capability to check interrupt source, tap type, and orientation */ +/* See MMA8451Q.h for configuration to enable/disable different features */ + #ifndef MMA8451Q_H #define MMA8451Q_H