Added support for ESP32H2

This commit is contained in:
nopnop2002 2024-03-24 12:32:06 +09:00
parent f7e247b4b9
commit 1da9238658
2 changed files with 6 additions and 3 deletions

View File

@ -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 git clone https://github.com/nopnop2002/esp-idf-ssd1306
cd esp-idf-ssd1306/TextDemo/ 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 menuconfig
idf.py flash idf.py flash
``` ```

View File

@ -8,6 +8,7 @@ menu "SSD1306 Configuration"
default 18 if IDF_TARGET_ESP32C2 default 18 if IDF_TARGET_ESP32C2
default 19 if IDF_TARGET_ESP32C3 default 19 if IDF_TARGET_ESP32C3
default 30 if IDF_TARGET_ESP32C6 default 30 if IDF_TARGET_ESP32C6
default 27 if IDF_TARGET_ESP32H2
choice INTERFACE choice INTERFACE
prompt "Interface" prompt "Interface"
@ -57,7 +58,8 @@ menu "SSD1306 Configuration"
int "SCL GPIO number" int "SCL GPIO number"
range 0 GPIO_RANGE_MAX range 0 GPIO_RANGE_MAX
default 22 if IDF_TARGET_ESP32 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 default 6 # C3 and others
help help
GPIO number (IOxx) to I2C SCL. GPIO number (IOxx) to I2C SCL.
@ -69,7 +71,8 @@ menu "SSD1306 Configuration"
int "SDA GPIO number" int "SDA GPIO number"
range 0 GPIO_RANGE_MAX range 0 GPIO_RANGE_MAX
default 21 if IDF_TARGET_ESP32 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 default 5 # C3 and others
help help
GPIO number (IOxx) to I2C SDA. GPIO number (IOxx) to I2C SDA.