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:7de985c38ade
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LM19_Driver.cpp Mon Nov 09 14:25:38 2020 +0000
@@ -0,0 +1,13 @@
+#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