LM61 thermometer progaram.

Dependencies:   LM61 mbed

Revision:
0:b13afce839ec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Mar 04 10:44:47 2015 +0000
@@ -0,0 +1,16 @@
+#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);
+    }
+}