For Hepta-Sat Lite
HeptaTemp.h
- Committer:
- HeptaSatTraining2019
- Date:
- 2019-08-21
- Revision:
- 7:79fba3155857
- Parent:
- 3:96c3dd85be15
- Child:
- 8:3cb7f1ea12bf
File content as of revision 7:79fba3155857:
#ifndef MBED_HEPTA2TEMP_H #define MBED_HEPTA2TEMP_H #include"mbed.h" class HeptaTemp { public: HeptaTemp(PinName pin); void temp_sense(float* temp); void temp_sense_u16(char* temp_u16); void temp_sensing_vol(float* voltage); private: //resistance float R1,R2,R3,R4,R5; float Pt; float R_1,R_2; //current float I; //voltage float Vref; //temperature coefficient float ce; AnalogIn _pin; }; #endif