Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Thu Aug 4 2022 12:14:52 by
1.7.2