获取mpu6050 六轴传感器数据,从打印串口中输出

Dependencies:   mbed MPU6050

Files at this revision

API Documentation at this revision

Comitter:
ritarosakai
Date:
Thu Aug 15 03:42:49 2019 +0000
Parent:
1:01af59327884
Commit message:
Fix doxygen

Changed in this revision

MPU6050.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MPU6050.lib	Sun Jan 07 07:38:46 2018 +0000
+++ b/MPU6050.lib	Thu Aug 15 03:42:49 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/ritarosakai/code/MPU6050/#023399fc7ca5
+http://mbed.org/users/ritarosakai/code/MPU6050/#a993e922395d
--- a/main.cpp	Sun Jan 07 07:38:46 2018 +0000
+++ b/main.cpp	Thu Aug 15 03:42:49 2019 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 #include "MPU6050.h"
 
-MPU6050 mpu(D7,D8);//for Nucleo-F042K6
+MPU6050 mpu(D4,D5);
 Serial pc(USBTX,USBRX);
 
 float gx,gy,gz,ax,ay,az;