CPS-Lab* / Mbed 2 deprecated lab6

Dependencies:   ADXL362 mbed MPL3115A2

Revision:
13:1cae1960370c
Parent:
12:c6b056ad171e
Child:
14:0c2659ce7a8a
--- a/main.cpp	Thu Feb 22 21:29:19 2018 +0000
+++ b/main.cpp	Thu Feb 22 21:32:49 2018 +0000
@@ -151,6 +151,7 @@
         x=adxl362.scanx_u8();
         y=adxl362.scany_u8();
         z=adxl362.scanz_u8();
+        //if x, y, or z vary from baseline by at least 3, a knock has occured.
         if(x > initx+2 || y > inity+2 || z > initz+2 || x > initx-2 || y > inity-2 || z > initz-2){
             led1 = 1;
             wait_ms(2000);