Searched refs:i2c_write_byte (Results 1 – 1 of 1) sorted by relevance
/AliOS-Things-master/components/py_engine/framework/ |
A D | mpu6050.py | 104 def i2c_write_byte(self, addr, value): member in MPU6050 131 return self.i2c_write_byte(MPU_GYRO_CFG_REG, fsr << 3) # 设置陀螺仪满量程范围 158 return self.i2c_write_byte(MPU_CFG_REG, data) # 设置数字低通滤波器 170 self.i2c_write_byte(MPU_SAMPLE_RATE_REG, data) # 设置数字低通滤波器 248 self.i2c_write_byte(MPU_PWR_MGMT1_REG, 0X80) # 复位MPU6050 250 self.i2c_write_byte(MPU_PWR_MGMT1_REG, 0X00) # 唤醒MPU6050 254 self.i2c_write_byte(MPU_INT_EN_REG, 0X00) # 关闭所有中断 255 self.i2c_write_byte(MPU_USER_CTRL_REG, 0X00) # I2C主模式关闭 256 self.i2c_write_byte(MPU_FIFO_EN_REG, 0X00) # 关闭FIFO 257 self.i2c_write_byte(MPU_INTBP_CFG_REG, 0X80) # INT引脚低电平有效 [all …]
|
Completed in 5 milliseconds