diff --git a/README.md b/README.md index e428458..4bd52bc 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Under ESP-IDF V5.2 this project uses a new i2c driver. ``` git clone https://github.com/nopnop2002/esp-idf-ssd1306 cd esp-idf-ssd1306/TextDemo/ -idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6} +idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6/esp32h2} idf.py menuconfig idf.py flash ``` diff --git a/components/ssd1306/Kconfig.projbuild b/components/ssd1306/Kconfig.projbuild index af220bd..0394575 100644 --- a/components/ssd1306/Kconfig.projbuild +++ b/components/ssd1306/Kconfig.projbuild @@ -8,6 +8,7 @@ menu "SSD1306 Configuration" default 18 if IDF_TARGET_ESP32C2 default 19 if IDF_TARGET_ESP32C3 default 30 if IDF_TARGET_ESP32C6 + default 27 if IDF_TARGET_ESP32H2 choice INTERFACE prompt "Interface" @@ -57,7 +58,8 @@ menu "SSD1306 Configuration" int "SCL GPIO number" range 0 GPIO_RANGE_MAX default 22 if IDF_TARGET_ESP32 - default 12 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 + default 2 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 + default 2 if IDF_TARGET_ESP32H2 default 6 # C3 and others help GPIO number (IOxx) to I2C SCL. @@ -69,7 +71,8 @@ menu "SSD1306 Configuration" int "SDA GPIO number" range 0 GPIO_RANGE_MAX default 21 if IDF_TARGET_ESP32 - default 11 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 + default 1 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 + default 1 if IDF_TARGET_ESP32H2 default 5 # C3 and others help GPIO number (IOxx) to I2C SDA.