いろんな出力のお試しコード

Dependencies:   mbed

Revision:
2:a8e6713fbe41
Parent:
1:b4d995953362
Child:
3:21210e2561c8
--- a/main.cpp	Sat May 16 06:30:14 2015 +0000
+++ b/main.cpp	Sat May 16 07:21:07 2015 +0000
@@ -54,20 +54,20 @@
         l ^= 1;
         myLED = l;
     }
-        
+    
+    Controller.printf("LR  UD\n");
+    
     float tmp;  
     while(1){
         
         //ジョイスティックの左右方向読み取り
         tmp = JOYstick_LR.read();
-        Controller.printf("JOYSTICK LR:%f",1-tmp);
-        Controller.printf("\n");
+        Controller.printf("%f  ",tmp);
         motorLR = tmp;
 
         //ジョイスティックの上下方向読み取り
         tmp = JOYstick_UD.read();
-        Controller.printf("JOYSTICK UD:%f",1-tmp);
-        Controller.printf("\n");
+        Controller.printf("%f\n",tmp);
         motorUD = tmp;
         
         //タクトスイッチの動作全般
@@ -96,9 +96,6 @@
             motorB = HIGH;
         }
         
-        //100ms待機
-        wait(0.1);
-        
     }
     
 }
\ No newline at end of file