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@2:18597e0a246f, 2022-12-02 (annotated)
- Committer:
- lucydamon
- Date:
- Fri Dec 02 00:19:49 2022 +0000
- Revision:
- 2:18597e0a246f
- Parent:
- 1:101ffcb3157f
added some code to read temperature outputs and voltage- NOTE temperature readings are not correct due to the incorrect temperature equation- I still cannot figure out correct equation.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lucydamon | 0:929925da937d | 1 | #ifndef LM19_Driver_H |
lucydamon | 0:929925da937d | 2 | #define LM19_Driver_H |
lucydamon | 1:101ffcb3157f | 3 | |
lucydamon | 0:929925da937d | 4 | #include "mbed.h" |
lucydamon | 0:929925da937d | 5 | |
lucydamon | 0:929925da937d | 6 | class LM19 |
lucydamon | 0:929925da937d | 7 | { |
lucydamon | 0:929925da937d | 8 | |
lucydamon | 0:929925da937d | 9 | public: |
lucydamon | 1:101ffcb3157f | 10 | LM19(PinName in1); |
lucydamon | 1:101ffcb3157f | 11 | float c1, c2, c3, c4; |
lucydamon | 2:18597e0a246f | 12 | float temp(); |
lucydamon | 2:18597e0a246f | 13 | float volt(); |
lucydamon | 0:929925da937d | 14 | |
lucydamon | 0:929925da937d | 15 | private: |
lucydamon | 1:101ffcb3157f | 16 | AnalogIn _in1; |
lucydamon | 0:929925da937d | 17 | |
lucydamon | 0:929925da937d | 18 | }; |
lucydamon | 0:929925da937d | 19 | |
lucydamon | 0:929925da937d | 20 | #endif |