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:
- 6:2b68086a26ff
- Parent:
- 5:c43505b5bc31
- Child:
- 7:e71c4d6398ea
--- 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