Pio IX 6ºTecnica - Integrantes: Facundo Carmona, Facundo Sussini - Controlador de cooler mediante un DS1820 y un potenciometro

Dependencies:   mbed DS1820

Files at this revision

API Documentation at this revision

Comitter:
Susso
Date:
Tue Jun 04 12:13:58 2019 +0000
Parent:
5:6515379eac2f
Child:
7:a74643e9de62
Commit message:
vvh;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jun 04 12:07:04 2019 +0000
+++ b/main.cpp	Tue Jun 04 12:13:58 2019 +0000
@@ -59,7 +59,7 @@
         voltage=adcValue*3.3 / 65535; // convertimos el valor de ADC a volts
         porcentageADC = voltage*100 / 3.3; // con el valor en volts podemos saber el porcentaje del ADC
     
-        probe.convertTemperature(true, DS1820::all_devices);         //Start temperature conversion, wait until ready
+        probe.convertTemperature(false, DS1820::all_devices);         //Start temperature conversion, wait until ready
         // probe.temperature() ---> temperatura en Cº
         temperatura=probe.temperature();
         porcentajetemperatura=(((float)temperatura-20)*2)/100;