Data logger

Dependencies:   mbed C12832 LM75B

Files at this revision

API Documentation at this revision

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
diff -r 8b6bbd2d9889 -r 1338bc71f6fa main.cpp
--- 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