Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HeptaTemp by
HeptaTemp.h
00001 #ifndef MBED_HEPTA2TEMP_H 00002 #define MBED_HEPTA2TEMP_H 00003 #include"mbed.h" 00004 00005 class HeptaTemp 00006 { 00007 public: 00008 HeptaTemp(PinName pin); 00009 void temp_sense(float* temp); 00010 void temp_sense_u16(char* temp_u16, int *dsize); 00011 void temp_sensing_vol(float* voltage); 00012 00013 private: 00014 //resistance 00015 float R1 ; 00016 float R2 ; 00017 float R3; 00018 float R4; 00019 float R5; 00020 float Pt; 00021 float R_1; 00022 float R_2; 00023 //current 00024 float I; 00025 //voltage 00026 float Vref; 00027 00028 //temperature coefficient 00029 float ce; 00030 00031 AnalogIn _pin; 00032 00033 }; 00034 00035 #endif
Generated on Thu Jul 21 2022 11:17:27 by
