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