Lucy Damon / LM19_Driver2
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LM19_Driver.cpp Source File

LM19_Driver.cpp

00001 #include "LM19_Driver.h"
00002 
00003 LM19::LM19(PinName in1): _in1(in1)
00004 {
00005     c1 = -1481.96;
00006     c2 = 2.1962*1000000.000;
00007     c3 = 1.8636;
00008     c4 = 3.88/1000000.000;
00009 
00010 }
00011 
00012 float LM19::temp()
00013 {
00014     float temp=_in1.read()*3.3;
00015     return temp;
00016 
00017 }
00018 
00019 float LM19::volt()
00020 {
00021     float volt=_in1.read()*3.3;
00022     return volt;
00023 
00024 }