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:
- 8:018aea85c0db
- Parent:
- 7:e71c4d6398ea
--- 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"