From 04101ea18f8f70e4a029221fb272625c23447c5d Mon Sep 17 00:00:00 2001 From: Shi Xin Ke Date: Fri, 15 Nov 2024 15:12:37 +0800 Subject: [PATCH] feat(lightbulb): Example to adapt to ESP32-C5 development board --- components/led/lightbulb_driver/CHANGELOG.md | 6 ++++++ components/led/lightbulb_driver/idf_component.yml | 2 +- examples/lighting/lightbulb/main/Kconfig.projbuild | 9 +++++---- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/components/led/lightbulb_driver/CHANGELOG.md b/components/led/lightbulb_driver/CHANGELOG.md index c2bcfe265..242917905 100644 --- a/components/led/lightbulb_driver/CHANGELOG.md +++ b/components/led/lightbulb_driver/CHANGELOG.md @@ -1,5 +1,11 @@ # ChangeLog +## v1.4.0 - 2024-11-15 + +### Enhancements: + +* Example adapted to ESP32-C5 chip + ## v1.3.3 - 2024-11-07 ### Bug Fixes: diff --git a/components/led/lightbulb_driver/idf_component.yml b/components/led/lightbulb_driver/idf_component.yml index ef982c21f..ab98a9e8a 100644 --- a/components/led/lightbulb_driver/idf_component.yml +++ b/components/led/lightbulb_driver/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.3.3" +version: "1.4.0" description: Provide multiple dimming driver solutions to easily build lightbulb applications url: https://github.com/espressif/esp-iot-solution/tree/master/components/led/lightbulb_driver dependencies: diff --git a/examples/lighting/lightbulb/main/Kconfig.projbuild b/examples/lighting/lightbulb/main/Kconfig.projbuild index 6e9cb12ac..37b29167c 100644 --- a/examples/lighting/lightbulb/main/Kconfig.projbuild +++ b/examples/lighting/lightbulb/main/Kconfig.projbuild @@ -2,7 +2,7 @@ menu "Lightbulb Demo Configuration" choice LIGHTBULB_DEMO_DRIVER_SELECT bool "Demo select" - default LIGHTBULB_DEMO_DRIVER_SELECT_WS2812 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C6 + default LIGHTBULB_DEMO_DRIVER_SELECT_WS2812 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32H2 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32C5 default LIGHTBULB_DEMO_DRIVER_SELECT_PWM help Select the driver type you want to demonstrate @@ -21,6 +21,7 @@ menu "Lightbulb Demo Configuration" default 18 if IDF_TARGET_ESP32S2 default 48 if IDF_TARGET_ESP32S3 default 4 if IDF_TARGET_ESP32C2 + default 27 if IDF_TARGET_ESP32C5 default 18 depends on LIGHTBULB_DEMO_DRIVER_SELECT_WS2812 help @@ -43,7 +44,7 @@ menu "Lightbulb Demo Configuration" config PWM_RED_GPIO int "PWM Red GPIO" - default 10 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C6 + default 10 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32C5 default 15 if IDF_TARGET_ESP32S3 default 0 if IDF_TARGET_ESP32C2 default 23 if IDF_TARGET_ESP32H2 @@ -54,7 +55,7 @@ menu "Lightbulb Demo Configuration" config PWM_GREEN_GPIO int "PWM Green GPIO" - default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C6 + default 6 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32C5 default 16 if IDF_TARGET_ESP32S3 default 1 if IDF_TARGET_ESP32C2 default 24 if IDF_TARGET_ESP32H2 @@ -65,7 +66,7 @@ menu "Lightbulb Demo Configuration" config PWM_BLUE_GPIO int "PWM Blue GPIO" - default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C6 + default 7 if IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C6 || IDF_TARGET_ESP32C5 default 17 if IDF_TARGET_ESP32S3 default 8 if IDF_TARGET_ESP32C2 default 25 if IDF_TARGET_ESP32H2