Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lab7.cpp
- Revision:
- 11:1bf881a206a4
- Parent:
- 10:4bf253a5c1a5
- Child:
- 12:bc83fa7d2de4
diff -r 4bf253a5c1a5 -r 1bf881a206a4 lab7.cpp
--- a/lab7.cpp Tue Mar 06 15:52:02 2018 +0000
+++ b/lab7.cpp Thu Mar 08 15:17:51 2018 +0000
@@ -44,13 +44,15 @@
//printf("nooooope\n\r");
if(startStop.read()) {
- printf("it worked\n\r");
+ printf("GPIO Connectedn\r");
collect_data();
printf("done collecting\n\rarray size: %d,\t buffer fill: %d\n\r", ARRAY_SIZE, buffer_full);
int offset = 0;
for(int i = 0; i < buffer_full; i++)
- printf("%d\t%lf\t%lf\n\r", i,*(pressure_arr + offset), *(temp_arr + offset));
+ {
+ printf("\t%d\t%lf\t%lf\n\r", i,*(pressure_arr + offset), *(temp_arr + offset));
offset += sizeof(double);
+ }
}
}