Fixed MPU6886 Init I2C error

This commit is contained in:
sorz
2020-07-28 15:30:11 +08:00
parent e2a0a3bd99
commit fdadceda09
+1 -1
View File
@@ -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];