From fdadceda097e85efcd106dfd285402c98564c65e Mon Sep 17 00:00:00 2001 From: sorz Date: Tue, 28 Jul 2020 15:30:11 +0800 Subject: [PATCH] Fixed MPU6886 Init I2C error --- src/utility/MPU6886.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/MPU6886.cpp b/src/utility/MPU6886.cpp index cf2aaff..c4cb991 100644 --- a/src/utility/MPU6886.cpp +++ b/src/utility/MPU6886.cpp @@ -23,7 +23,7 @@ int MPU6886::Init(void) { Gyscale = GFS_2000DPS; Acscale = AFS_8G; - Wire1.begin(21,22); + Wire.begin(21,22); I2C_Read_NBytes(MPU6886_ADDRESS, MPU6886_WHOAMI, 1, tempdata); imuId = tempdata[0];