lm3531
Diff: LM35.h
- Revision:
- 0:b83c07e29cbb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM35.h Sat Dec 03 11:43:42 2016 +0000 @@ -0,0 +1,33 @@ +/* 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_ */ \ No newline at end of file