From 4d9ee073bdb6140d8a7d933faa99f5b7c6be7c4c Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Mon, 23 Mar 2026 20:04:41 +0300 Subject: [PATCH] feat: added esp-idf v6.0.0 support --- CMakeLists.txt | 7 ++++++- README.md | 2 +- version.txt | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dd255d..4a5d0c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1 +1,6 @@ -idf_component_register(SRCS "zh_pcf8574.c" INCLUDE_DIRS "include" REQUIRES driver esp_timer esp_event zh_vector) \ No newline at end of file +if(${IDF_VERSION_MAJOR} STREQUAL 6) + set(requires esp_driver_gpio esp_driver_i2c esp_timer esp_event zh_vector) +else() + set(requires driver esp_timer esp_event zh_vector) +endif() +idf_component_register(SRCS "zh_pcf8574.c" INCLUDE_DIRS "include" REQUIRES ${requires}) \ No newline at end of file diff --git a/README.md b/README.md index 3237b05..9191b6a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Tested on -1. [ESP32 ESP-IDF v5.5.3](https://docs.espressif.com/projects/esp-idf/en/v5.5.3/esp32/index.html) +1. [ESP32 ESP-IDF v6.0.0](https://docs.espressif.com/projects/esp-idf/en/v6.0/esp32/index.html) ## SAST Tools diff --git a/version.txt b/version.txt index 9aa3464..6533b66 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.7.0 \ No newline at end of file +2.8.0 \ No newline at end of file