mn

Dependents:   atmel1602_24c256

Revision:
2:ee3997416bcc
Parent:
1:601e1435dfb8
--- a/Thermistor.h	Wed Mar 09 13:56:37 2016 +0000
+++ b/Thermistor.h	Mon Aug 12 11:10:04 2019 +0000
@@ -78,7 +78,7 @@
 #include "mbed.h"
 
 
-#define THERMISTORNOMINAL 100000      // 100k default 
+#define THERMISTORNOMINAL 10000      // 100k default 
 // temp. for nominal resistance (almost always 25 C)
 #define TEMPERATURENOMINAL 25   
 // The beta coefficient of the thermistor (usually 3000-4000)
@@ -108,10 +108,10 @@
  
 private:
     AnalogIn _pin;
-    float ThermistorNominal;
-    float TemperatureNominal;
-    float BCoefficient;
-    float SeriesResistor;
+    double ThermistorNominal;
+    double TemperatureNominal;
+    double BCoefficient;
+    double SeriesResistor;
 };
  
 #endif