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.
Dependencies: mbed C12832 LM75B
Revision 8:1338bc71f6fa, committed 2020-12-05
- Comitter:
- ciaranom
- Date:
- Sat Dec 05 15:53:20 2020 +0000
- Parent:
- 7:8b6bbd2d9889
- Commit message:
- CPSLab3
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Dec 05 15:46:50 2020 +0000
+++ b/main.cpp Sat Dec 05 15:53:20 2020 +0000
@@ -84,9 +84,12 @@
} //while loop creating sting of values from file ends
double avg = total/(cycles);
- printf("Average: %.2f \n\r", avg);
- printf("Max: %.2f \n\r", maxtemp);
- printf("Min: %.2f \n\r", mintemp);
+ lcd.locate(0,0);
+ lcd.printf("Average: %.2f ", avg);
+ lcd.locate(0,15);
+ lcd.printf("Max: %.2f ", maxtemp);
+ lcd.locate(0,30);
+ lcd.printf("Min: %.2f ", mintemp);
fclose(fp); // close file