Skip to content

611code/MPU6050

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

使用教程

配置硬件I2C

头文件引用

#include "mpu6050.h"

添加结构体

MPU6050_t MPU6050;

在main函数里,初始化为

while(MPU6050_Init(&hi2c1) == 1);

while(1)里

MPU6050_Read_All(&hi2c1, &MPU6050);
HAL_Delay(100);

提取数据eg:

MPU6050.KalmanAngleX

原github

https://github.com/leech001/MPU6050

About

MPU6050_hal库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages