MPU6050 (hardware IIC)
2016-08-23
2k+ 0 0
4.0
Other
Earn points
#include "stm32f10x.h"#include "I2C_ MPU6050.h"#include "usart1.h"#include "delay.h"int main(void){ InitMPU6050();/***********************************************************************/while(1){printf("\r\n---------------%d \r\n",GetData(ACCEL_ XOUT_ H));printf("\r\n----------------%d \r\n",GetData(ACCEL_ YOUT_ H)); printf("\r\n------------------%d \r\n",GetData(ACCEL_ ZOUT_ H)); printf("\r\n---------------%d \r\n",GetData(GYRO_ XOUT_ H)); printf("\r\n-----------------%d \r\n",GetData(GYRO_ YOUT_ H)); printf("\r\n---------Ã---------%d \r\n",GetData(GYRO_ ZOUT_ H));delay_ ms(500);} }/******************* (C) COPYRIGHT 2012 WildFire Team *****END OF FILE************/
c
IIC
调试
参数
进行
传感器
硬件
设置
mpu
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment