lm3531

LM35.h

Committer:
arturogasca
Date:
2016-12-03
Revision:
0:b83c07e29cbb

File content as of revision 0:b83c07e29cbb:

/* 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_ */