Read the teperature from the sensor. Show the results on the seriel port using 4 variables, Max_temp, Min_Temp, Avg_Temp and the temperature. Every day of use the values will reset

Dependencies:   LM61 TMP36 mbed

Files at this revision

API Documentation at this revision

Comitter:
mabenim
Date:
Tue Apr 05 23:31:28 2016 +0000
Parent:
2:08d2f9299433
Child:
4:849a3ee29a49
Commit message:
Anterior mejorado

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Apr 05 23:30:48 2016 +0000
+++ b/main.cpp	Tue Apr 05 23:31:28 2016 +0000
@@ -17,7 +17,7 @@
 
     printf("\Ejemplo temperatura\n");
     frecuencia=60;
-    contador_max=60*24;
+    contador_max=60*60*24/frecuencia;
     contador=0;
     Temperatura_max=-100;
     Temperatura_min=100;