资 源 简 介
#include "stm32f10x.h"#include "I2C_MPU6050.h"#include "usart1.h"#include "delay.h"int main(void){ InitMPU6050();/***********************************************************************/while(1){printf("
---------------%d
",GetData(ACCEL_XOUT_H));printf("
----------------%d
",GetData(ACCEL_YOUT_H)); printf("
------------------%d
",GetData(ACCEL_ZOUT_H)); printf("
---------------%d
",GetData(GYRO_XOUT_H)); printf("
-----------------%d
",GetData(GYRO_YOUT_H)); printf("
---------Ã---------%d
",GetData(GYRO_ZOUT_H));delay_ms(500);} }/******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/