Browse Source

run I2C at full freq

master
Alex Mikhalev 6 years ago
parent
commit
3b69f67179
  1. 2
      main/ugv_io_mpu.cc

2
main/ugv_io_mpu.cc

@ -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;

Loading…
Cancel
Save