run I2C at full freq

This commit is contained in:
Alex Mikhalev 2019-04-25 18:27:22 -07:00
parent 06310ab7ac
commit 3b69f67179

View File

@ -43,7 +43,7 @@ void MPU::Init() {
mpu_bus_ = &i2c1; mpu_bus_ = &i2c1;
// This is shared with the oled, so just use those pins // This is shared with the oled, so just use those pins
mpu_bus_->setTimeout(10); mpu_bus_->setTimeout(10);
mpu_bus_->begin(MPU_SDA, MPU_SCL, 100000); mpu_bus_->begin(MPU_SDA, MPU_SCL, 400000);
mpu_ = new mpud::MPU(*mpu_bus_); mpu_ = new mpud::MPU(*mpu_bus_);
esp_err_t ret; esp_err_t ret;