trabalho

Dependencies:   X_NUCLEO_IKS01A1 mbed-rtos mbed

Fork of HelloWorld_IKS01A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
nlsantos
Date:
Thu May 05 15:45:28 2016 +0000
Parent:
14:9542d3b656ff
Child:
16:b9cfb5171af6
Commit message:
updated

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu May 05 15:37:59 2016 +0000
+++ b/main.cpp	Thu May 05 15:45:28 2016 +0000
@@ -154,6 +154,7 @@
     float value1, value2;
     char buffer1[32], buffer2[32];
     int32_t axes[3];
+    int userInstruction;
 
     printf("\r\n--- Starting new run ---\r\n");
 
@@ -167,7 +168,15 @@
     printf("LSM6DS0 accelerometer & gyroscope = 0x%X\r\n", id);
 
     wait(3);
+    
+    while (userInstruction !=0 || userInstruction <=9)
+    {
+        printf ("Please select and option ");
+        
+    
+    }
 
+    /*
     while(1) {
         printf("\r\n");
 
@@ -192,4 +201,5 @@
 
         wait(1.5);
     }
+    */
 }