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
Revision 8:781d00449dd7, committed 2017-04-27
- Comitter:
- loopsva
- Date:
- Thu Apr 27 18:38:49 2017 +0000
- Parent:
- 7:1de44d8867a3
- Commit message:
- Changed NULL to 0, this time in the .cpp file for os5
Changed in this revision
ntc.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1de44d8867a3 -r 781d00449dd7 ntc.cpp --- a/ntc.cpp Thu Apr 27 16:37:05 2017 +0000 +++ b/ntc.cpp Thu Apr 27 18:38:49 2017 +0000 @@ -9,14 +9,14 @@ _ana(p_ana) { ntc_set_data = *ntc_parameter; - rawdata = NULL; + rawdata = 0; } NTC::NTC(PinName p_ana) : _ana(p_ana) { ntc_set_data = ntc_std_paramtr; - rawdata = NULL; + rawdata = 0; } uint16_t NTC::read_ad_reg() {