stm32 mpu_6050程序
#include"i2c.h"
#include"stm32f10x.h"
#include//Keillibrary
//¶¨ÒåMPU6050ÄÚ²¿µØÖ·
//****************************************
#define SMPLRT_DIV 0x19 //ÍÓÂÝÒDzÉÑùÂÊ£¬µäÐÍÖµ£º0x07(125Hz)
#define CONFIG 0x1A //µÍͨÂ˲¨ÆµÂÊ£¬µäÐÍÖµ£º0x06(5Hz)
#define GYRO_CONFIG 0x1b //ÍÓÂÝÒÇ×Ô
下载地址
用户评论