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_Driver.h@0:876059873ad6, 2021-11-10 (annotated)
- Committer:
- mackenziefraser
- Date:
- Wed Nov 10 15:13:35 2021 +0000
- Revision:
- 0:876059873ad6
- Child:
- 1:6249f99332e0
LM19 driver file; create initialization function; define inputs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mackenziefraser | 0:876059873ad6 | 1 | #ifndef LM19_Driver_H |
mackenziefraser | 0:876059873ad6 | 2 | #define LM19_Driver_H |
mackenziefraser | 0:876059873ad6 | 3 | |
mackenziefraser | 0:876059873ad6 | 4 | #include "mbed.h" |
mackenziefraser | 0:876059873ad6 | 5 | |
mackenziefraser | 0:876059873ad6 | 6 | class LM19 { |
mackenziefraser | 0:876059873ad6 | 7 | |
mackenziefraser | 0:876059873ad6 | 8 | public: |
mackenziefraser | 0:876059873ad6 | 9 | LM19(PinName in1); //initialization function |
mackenziefraser | 0:876059873ad6 | 10 | float c1, c2, c3, c4; |
mackenziefraser | 0:876059873ad6 | 11 | float temp(); //temperature computation |
mackenziefraser | 0:876059873ad6 | 12 | |
mackenziefraser | 0:876059873ad6 | 13 | private: |
mackenziefraser | 0:876059873ad6 | 14 | AnalogIn _in1; |
mackenziefraser | 0:876059873ad6 | 15 | |
mackenziefraser | 0:876059873ad6 | 16 | }; |
mackenziefraser | 0:876059873ad6 | 17 | |
mackenziefraser | 0:876059873ad6 | 18 | #endif |