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.
Diff: LM19_Driver.cpp
- Revision:
- 0:876059873ad6
- Child:
- 1:6249f99332e0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM19_Driver.cpp Wed Nov 10 15:13:35 2021 +0000 @@ -0,0 +1,14 @@ +#include "LM19_Driver.h" + +LM19::LM19(PinName in1): _in1(in1) { + c1 = -1481.96; + c2 = 2.1962*1000000.000; + c3 = 1.8636; + c4 = 3.88/1000000.000; +} + +float LM19::temp(){ + float volt=_in1.read()*3.3; + float T=c1+sqrt(c2 + (c3-volt)/c4); + return T; +} \ No newline at end of file