NTC temperature sensor going to A:D input. Topology is: (Vref or 3.3V) -> Series_resistor -> A:D_input -> NTC -> GND. Easy modification of NTC parameters w/o recompile of library

Dependents:   ntc_helloworld

Revision:
7:1de44d8867a3
Parent:
6:8e6bd0f9877b
--- a/ntc.h	Wed Apr 12 16:56:27 2017 +0000
+++ b/ntc.h	Thu Apr 27 16:37:05 2017 +0000
@@ -192,7 +192,7 @@
       * @param din -> if != 0, then value of din is used for calculation
       * @return resistance of NTC
       */
-    float get_ntc_res_viaAD(uint16_t din = NULL);
+    float get_ntc_res_viaAD(uint16_t din = 0);
       
     /** calculate NTC temperaure
       * @param curve Beta curve to use. See ntcBetaCurve {};
@@ -202,7 +202,7 @@
       * @return temperature of NTC
       * @return -100 if NTC Beta selected = 0
       */
-    float get_ntc_temp(int curve, uint16_t din = NULL);
+    float get_ntc_temp(int curve, uint16_t din = 0);
     
 protected:
     AnalogIn  _ana;