gg

Dependencies:   mbed MPU6050 RateLimiter test Math

Revision:
3:157b19421485
Parent:
1:958b581f6d21
Child:
4:d2bb399c7c8c
--- a/main.cpp	Sat Oct 20 03:07:08 2018 +0000
+++ b/main.cpp	Mon Oct 29 12:22:57 2018 +0000
@@ -1,10 +1,8 @@
 #include "mbed.h"
 #include "MPU6050.h"
 
-//うp遅れてすいません。基本Flaoatで定義してクレメンス。
-
 DigitalOut myled(LED1);
-MPU6050 mpu(p9,p10);//(SDA,SCL)のピンをアサインしてね☆
+MPU6050 mpu(p9,p10);//(SDA,SCL)のピン配置
 
 int main() {
     while(1){
@@ -13,7 +11,7 @@
         float x = accel[0]/16384;//x軸方向の加速度
         float y = accel[1]/16384;//y軸方向の加速度
         float z = accel[2]/16384;//z軸方向の加速度
-        printf("accel x:%f y:%f z:%f\r\n",x,y,z);//一応表示しとくやで~~
-        wait(0.05);
+        printf("accel x:%f y:%f z:%f\r\n",x,y,z);//加速度の表示
+        wait(0.1);
     }
 }