LM61 thermometer progaram.
Revision 0:b13afce839ec, committed 2015-03-04
- Comitter:
- Match314
- Date:
- Wed Mar 04 10:44:47 2015 +0000
- Commit message:
- Up
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LM61.lib Wed Mar 04 10:44:47 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/Match314/code/LM61/#82efa0dea908
--- /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);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Mar 04 10:44:47 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file