Skip to content

Commit 39c4871

Browse files
Martyclaude
andcommitted
修正 ESP32-S3 編譯問題:停用 I2C target 模式
停用 ESP32_GENERIC_S3 板型的 I2C target(從設備)模式, 以解決與 ESP-IDF v5.3.1 API 不相容的編譯錯誤。 - 在 mpconfigboard.h 中設定 MICROPY_PY_MACHINE_I2C_TARGET=0 - I2C master(主設備)模式仍正常可用 - 更新編譯依賴鎖定檔案 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d4c112a commit 39c4871

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ports/esp32/boards/ESP32_GENERIC_S3/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99

1010
#define MICROPY_HW_I2C0_SCL (9)
1111
#define MICROPY_HW_I2C0_SDA (8)
12+
13+
// Disable I2C target mode due to ESP-IDF v5.3.1 API incompatibility
14+
#define MICROPY_PY_MACHINE_I2C_TARGET (0)

ports/esp32/lockfiles/dependencies.lock.esp32s3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
idf:
4141
source:
4242
type: idf
43-
version: 5.5.1
43+
version: 5.3.1
4444
direct_dependencies:
4545
- espressif/esp_tinyusb
4646
- espressif/mdns

0 commit comments

Comments
 (0)