Lucy Damon / LM19_Driver2

LM19_Driver.cpp

Committer:
lucydamon
Date:
2022-12-02
Revision:
2:18597e0a246f
Parent:
1:101ffcb3157f

File content as of revision 2:18597e0a246f:

#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 temp=_in1.read()*3.3;
    return temp;

}

float LM19::volt()
{
    float volt=_in1.read()*3.3;
    return volt;

}