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

Dependencies:   mbed

Revision:
1:92135ec2c2df
Parent:
0:7aaa2aa0ce71
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);
     }
 }
+