lauren cloutier / cloutier_a7_modular_programming
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LM19.h Source File

LM19.h

00001 // .h file for temperature sensor
00002 
00003 
00004 
00005 #ifndef LM19_Driver_H //if driver is not defined
00006 #define LM19_Driver_H //define driver
00007 
00008 #include "mbed.h" //includes mbed library for analog in (pin functions)
00009 
00010 class LM19{
00011     
00012     public: //variables are accessable in main function
00013     LM19(PinName in1); //initialization function
00014     float c1, c2, c3, c4; //variables to convert temperature reading
00015     float temp(); //temperature computation function
00016     
00017     private: //variables not accessable outside class
00018     AnalogIn _in1; //object to be used in initialization from .cpp file
00019     
00020 };
00021 
00022 #endif //ends define driver statment