アナログ入力をPCで表示するプログラムです。

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
jksoft
Date:
Fri Mar 06 22:10:43 2015 +0000
Parent:
0:7aaa2aa0ce71
Commit message:
????????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 7aaa2aa0ce71 -r 92135ec2c2df main.cpp
--- a/main.cpp	Fri Mar 06 16:40:11 2015 +0000
+++ b/main.cpp	Fri Mar 06 22:10:43 2015 +0000
@@ -4,10 +4,11 @@
 
 int main() {
     while(1) {
-        float tmp = sensor;
+        float ain = sensor;
         
-        printf("tmp:%f\r\n",tmp);
+        printf("tmp:%f\r\n",ain);
         
         wait(1.0);
     }
 }
+