For Hepta-Sat Lite
HeptaTemp.h
- Committer:
- hepta2ume
- Date:
- 2017-07-20
- Revision:
- 0:f74735cb01bc
- Child:
- 1:a23c2cd65379
File content as of revision 0:f74735cb01bc:
#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, int *dsize); private: //resistance float R1 ; float R2 ; float R3; float R4; float R5; float Pt; float R_1; float R_2; //current float I; //voltage float Vref; //temperature coefficient float ce; AnalogIn _pin; }; #endif