MPUとHMCでうごくかもver

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by hiroya taura

Files at this revision

API Documentation at this revision

Comitter:
YusukeWakuta
Date:
Wed Dec 16 13:02:55 2015 +0000
Parent:
36:94dc027e05cd
Child:
38:ada39f1c6c76
Commit message:
????I2C?????????????

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Dec 07 02:11:56 2015 +0000
+++ b/main.cpp	Wed Dec 16 13:02:55 2015 +0000
@@ -19,7 +19,7 @@
 /****************************** private typedef   ******************************/
 /****************************** private variables ******************************/
 DigitalOut      myled(LED1);                        // デバッグ用LEDのためのデジタル出力
-I2C             i2c(p9, p8);                    // I2Cポート
+I2C             i2c(p9,p10);                    // I2Cポート
 MPU6050         mpu(&i2c);                          // 加速度・角速度センサ
 HMC5883L        hmc(&i2c);                          // 地磁気センサ
 LPS25H          lps(&i2c);                          // 気圧センサ
@@ -139,8 +139,9 @@
 /******************************   main function   ******************************/
 
 int main()
+
 {
-
+pc.printf("HELLO");
     i2c.frequency(400000);                  // I2Cの通信速度を400kHzに設定
     //カルマンフィルタ初期化
     KalmanInit();