libreria chida
LM35.h
- Committer:
- arturogasca
- Date:
- 2016-12-03
- Revision:
- 0:08ced55ecd21
File content as of revision 0:08ced55ecd21:
/* LM35.h */ #ifndef LM35_H_ #define LM35_H_ #include "mbed.h" /** */ class LM35 { public: /** Constructor */ LM35(PinName pin); /** Destructor */ ~LM35(); /** Get temperature */ float get(); private: AnalogIn sensorPin; float tempC,a[10],avg; int i; }; #endif /* LM35_H_ */