LM61 thermometer progaram.

Dependencies:   LM61 mbed

main.cpp

Committer:
Match314
Date:
2015-03-04
Revision:
0:b13afce839ec

File content as of revision 0:b13afce839ec:

#include "LM61.h"
#include "mbed.h"

LM61 lm61(p15);    // Connect to Vout pin in LM61.
Serial pc(USBTX, USBRX);

int main() {
    float temp;
    pc.baud(921600);
    
    while(1) {
        temp = lm61.GetTemp();
        pc.printf("Temp=%5.1f\r\n", temp);
        wait(1);
    }
}