Junichi Katsu / Mbed 2 deprecated LM61_Sample_

Dependencies:   mbed

Fork of LM61_Sample by Junichi Katsu

Files at this revision

API Documentation at this revision

Comitter:
jksoft
Date:
Thu Sep 17 20:48:09 2015 +0000
Parent:
0:8d64a9cb24d0
Commit message:
???

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Sep 15 10:21:42 2015 +0000
+++ b/main.cpp	Thu Sep 17 20:48:09 2015 +0000
@@ -1,12 +1,12 @@
 #include "mbed.h"
 
-AnalogIn ain(p15);
+AnalogIn ain(p20);
 
 int main() {
     float tmp;
     
     while(1) {
-        tmp = (ain - 0.1818)/0.00303;
+        tmp = ain;
         printf("Temperature=%f\r\n",tmp);
         wait(2.0);
     }