Class Implementation of Some sensors

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LM35.h Source File

LM35.h

00001 #ifndef LM35_H
00002 #define LM35_H
00003 
00004 #include "mbed.h"
00005 
00006 class LM35 {
00007 
00008 public:
00009     LM35 (PinName targetLM35); // Constructor 
00010     ~LM35 (); // Destructor
00011   
00012   private: 
00013     
00014    float TemperatureRate;
00015    AnalogIn    myLM35; 
00016     
00017   public: 
00018     void MeasureTemperatureRate ();
00019     float SendDataToController ();     
00020 };
00021   
00022 #endif