Lucy Damon / LM19_Driver2
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?

UserRevisionLine numberNew 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