
trabalho
Dependencies: X_NUCLEO_IKS01A1 mbed-rtos mbed
Fork of HelloWorld_IKS01A1 by
Revision 17:37294fc50c80, committed 2016-05-06
- Comitter:
- nlsantos
- Date:
- Fri May 06 01:04:28 2016 +0000
- Parent:
- 16:b9cfb5171af6
- Child:
- 18:bf6578e82712
- Commit message:
- A lot still to do but added the date time and the skelecton for the user commands, although I think they are not correct
Changed in this revision
mailBox.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/mailBox.cpp Fri May 06 00:50:48 2016 +0000 +++ b/mailBox.cpp Fri May 06 01:04:28 2016 +0000 @@ -28,12 +28,12 @@ log->accelerometer; log->gyroscope; log->magnetometer; - log->dd; - log->mm; - log->yyyy; - log->hh; - log->min; - log->ss; + // log->dd; + //// log->mm; + // log->yyyy; + // log->hh; + // log->min; + // log->ss; mail_box.put(log); Thread::wait(1000);
--- a/main.cpp Fri May 06 00:50:48 2016 +0000 +++ b/main.cpp Fri May 06 01:04:28 2016 +0000 @@ -165,7 +165,7 @@ bool debugMessages (bool state) { - return messages; + return state; } bool logging(bool state) @@ -183,6 +183,7 @@ char buffer1[32], buffer2[32]; int32_t axes[3]; int userInstruction; + int n; printf("\r\n--- Starting new run ---\r\n"); @@ -199,7 +200,29 @@ while (userInstruction !=0 || userInstruction <=9) { - printf ("Please select and option" ); + printf ("Please select and option: \n" ); + scanf ("%d", &userInstruction); + + switch (userInstruction){ + + case 1: + readAll(); + break; + + case 2: + deleteAll(); + break; + + case 3: + readN(); + + case 4: + + + + + } + }