WakeUp_LSM6DSO

Dependencies:   X_NUCLEO_IKS01A3

Files at this revision

API Documentation at this revision

Comitter:
peng103617
Date:
Thu Aug 06 06:57:04 2020 +0000
Parent:
4:387ef72462e0
Commit message:
Wakeup_LSD6DSO

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 387ef72462e0 -r 507ef51a90be main.cpp
--- a/main.cpp	Wed Jul 24 15:07:19 2019 +0000
+++ b/main.cpp	Thu Aug 06 06:57:04 2020 +0000
@@ -69,6 +69,9 @@
     /* Enable Wake-Up Detection. */
     acc_gyro->enable_wake_up_detection();
 
+
+ 
+
     printf("\r\n--- Starting new run ---\r\n");
 
     while (1) {
@@ -94,7 +97,10 @@
                 myled = 0;
 
                 /* Output data. */
+                while(1)
+                {
                 printf("Wake Up Detected!\r\n");
+               }
             }
         }
     }