From 60b4c2c1c5602f1bbb51cd0cbc03ca2f386cfed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?33=E6=98=AF=E7=A8=8B=E5=BA=8F=E5=91=98?= Date: Thu, 31 Jul 2025 01:29:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?WHO=5FAM=5FI=E5=AF=84=E5=AD=98=E5=99=A8?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=9B=BD=E4=BA=A7=E7=89=88MPU6050?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v3/main/main.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/main/main.ino b/v3/main/main.ino index eab5b8f..b825e75 100644 --- a/v3/main/main.ino +++ b/v3/main/main.ino @@ -349,7 +349,7 @@ void setup() { ; // PLL with X axis gyroscope reference and disable sleep mode while (i2cRead(0x75, i2cData, 1)) ; - if (i2cData[0] != 0x68) { // Read "WHO_AM_I" register + if (i2cData[0] != 0x68 && i2cData[0] != 0x70) { // Read "WHO_AM_I" register Serial.print(F("Error reading sensor")); while (1) ; -- Gitee From 1641521272629ffc2c1001ffcb58cf5b73c68baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A1=BA=E9=92=9E?= Date: Thu, 31 Jul 2025 09:45:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?v1=E3=80=81v2=E7=89=88=E6=9C=AC=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=BF=AE=E6=94=B9=E5=85=BC=E5=AE=B9=E5=9B=BD=E4=BA=A7?= =?UTF-8?q?mpu6050?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v1/main/main.ino | 2 +- v2/main/main.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v1/main/main.ino b/v1/main/main.ino index 5394d56..7ff4db9 100644 --- a/v1/main/main.ino +++ b/v1/main/main.ino @@ -197,7 +197,7 @@ if(j == 0) ; // PLL with X axis gyroscope reference and disable sleep mode while (i2cRead(0x75, i2cData, 1)) ; - if (i2cData[0] != 0x68) + if (i2cData[0] != 0x68 && i2cData[0] != 0x70) { // Read "WHO_AM_I" register Serial.print(F("Error reading sensor")); while (1) diff --git a/v2/main/main.ino b/v2/main/main.ino index 560636a..26c47ad 100644 --- a/v2/main/main.ino +++ b/v2/main/main.ino @@ -263,7 +263,7 @@ if(j == 0) ; // PLL with X axis gyroscope reference and disable sleep mode while (i2cRead(0x75, i2cData, 1)) ; - if (i2cData[0] != 0x68) + if (i2cData[0] != 0x68 && i2cData[0] != 0x70) { // Read "WHO_AM_I" register Serial.print(F("Error reading sensor")); while (1) -- Gitee