
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
Revision 4:849a3ee29a49, committed 2016-04-05
- Comitter:
- mabenim
- Date:
- Tue Apr 05 23:32:44 2016 +0000
- Parent:
- 3:ac70542e1a36
- Child:
- 5:9b4c978eb424
- Commit message:
- Inicializamos la temperatura
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:31:28 2016 +0000 +++ b/main.cpp Tue Apr 05 23:32:44 2016 +0000 @@ -21,6 +21,7 @@ contador=0; Temperatura_max=-100; Temperatura_min=100; + Temperatura_acumulada=0; while(1) { contador=contador+1; voltage=analog_value.read()*3.3;