Searched refs:MPU_Write_Byte (Results 1 – 2 of 2) sorted by relevance
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/ |
A D | drv_acc_gyro_inv_mpu6050.c | 16 uint8_t MPU_Write_Byte(uint8_t reg, uint8_t data) in MPU_Write_Byte() function 72 return MPU_Write_Byte(MPU_ACCEL_CFG_REG, in MPU_Set_Accel_Fsr() 94 return MPU_Write_Byte(MPU_CFG_REG, data); // 设置数字低通滤波器 in MPU_Set_LPF() 108 MPU_Write_Byte(MPU_SAMPLE_RATE_REG, data); // 设置数字低通滤波器 in MPU_Set_Rate() 125 MPU_Write_Byte(MPU_PWR_MGMT1_REG, 0X80); // 复位MPU6050 in MPU_Init() 127 MPU_Write_Byte(MPU_PWR_MGMT1_REG, 0X00); // 唤醒MPU6050 in MPU_Init() 131 MPU_Write_Byte(MPU_INT_EN_REG, 0X00); // 关闭所有中断 in MPU_Init() 132 MPU_Write_Byte(MPU_USER_CTRL_REG, 0X00); // I2C主模式关闭 in MPU_Init() 133 MPU_Write_Byte(MPU_FIFO_EN_REG, 0X00); // 关闭FIFO in MPU_Init() 134 MPU_Write_Byte(MPU_INTBP_CFG_REG, 0X80); // INT引脚低电平有效 in MPU_Init() [all …]
|
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/gyroscope/ |
A D | gyroscope.md | 99 MPU_Write_Byte(MPU_PWR_MGMT1_REG, 0X80); // 复位MPU6050 101 MPU_Write_Byte(MPU_PWR_MGMT1_REG, 0X00); // 唤醒MPU6050 105 MPU_Write_Byte(MPU_INT_EN_REG, 0X00); // 关闭所有中断 106 MPU_Write_Byte(MPU_USER_CTRL_REG, 0X00); // I2C主模式关闭 107 MPU_Write_Byte(MPU_FIFO_EN_REG, 0X00); // 关闭FIFO 108 MPU_Write_Byte(MPU_INTBP_CFG_REG, 0X80); // INT引脚低电平有效 113 MPU_Write_Byte(MPU_PWR_MGMT1_REG, 0X01); // 设置CLKSEL,PLL X轴为参考 114 MPU_Write_Byte(MPU_PWR_MGMT2_REG, 0X00); // 加速度与陀螺仪都工作
|
Completed in 3 milliseconds