Project 1 V1 Submission

Fork of MMA8451Q8_v1 by Bresdin O'Malley

Revision:
11:f249e23a8514
Parent:
10:a3c651c98243
diff -r a3c651c98243 -r f249e23a8514 MMA8451Q8.cpp
--- a/MMA8451Q8.cpp	Mon Feb 16 03:22:28 2015 +0000
+++ b/MMA8451Q8.cpp	Mon Feb 16 03:39:16 2015 +0000
@@ -34,9 +34,9 @@
 #define REG_PULSE_TMLT    0x26
 #define REG_PULSE_LTCY    0x27
 
-/*#define REG_DATA_THSZ    0x25
-#define REG_DATA_TMLT    0x26
-#define REG_DATA_LTCY    0x27*/
+#define REG_DATA_THSZ   0x08
+#define REG_DATA_TMLT   0x50 // Set the time limit for the Tap Detection to 50ms, Normal Mode
+#define REG_DATA_LTCY   0xF0 // Set the latency time to 300ms
 
 #define UINT14_MAX        16383