Skip to content

Commit 1f29424

Browse files
committed
feat(lightbulb_driver): Update driver dependency
1 parent 2d5378e commit 1f29424

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

components/led/lightbulb_driver/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ChangeLog
22

3+
## v1.11.0 - 2025-09-17
4+
5+
### Refactor:
6+
7+
* Clean up the component dependency, don't depend on the `driver` component directly
8+
39
## v1.10.1 - 2025-09-03
410

511
### Bug Fix:

components/led/lightbulb_driver/CMakeLists.txt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@ set(srcs "src/hal_driver.c"
33
"src/lighting.c"
44
)
55

6-
set(priv_req nvs_flash driver esp_timer)
6+
set(priv_req nvs_flash esp_timer)
7+
set(public_req)
78

89
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.2.6")
9-
list(APPEND priv_req "esp_driver_i2c")
10+
list(APPEND priv_req "esp_driver_i2c")
11+
endif()
12+
13+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
14+
list(APPEND public_req "esp_driver_gpio")
15+
list(APPEND priv_req "esp_driver_gptimer" "esp_driver_ledc" "esp_driver_spi")
16+
else()
17+
list(APPEND priv_req "driver")
1018
endif()
1119

1220
set(incs "include" "drivers/common/utils/")
@@ -72,6 +80,7 @@ idf_component_register(SRCS ${srcs}
7280
INCLUDE_DIRS ${incs}
7381
PRIV_INCLUDE_DIRS "src/priv_include"
7482
PRIV_REQUIRES ${priv_req}
83+
REQUIRES ${public_req}
7584
)
7685

7786
include(package_manager)

components/led/lightbulb_driver/Kconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,14 @@ menu "LightBulb Driver Config"
6666
menu "IIC Config"
6767
depends on ENABLE_KP18058_DRIVER || ENABLE_BP1658CJ_DRIVER || ENABLE_BP57X8D_DRIVER || ENABLE_SM2X35EGH_DRIVER || ENABLE_SM2135EH_DRIVER || ENABLE_SM2135E_DRIVER
6868

69+
config ESP_IDF_VERSION
70+
string
71+
default "${ESP_IDF_VERSION}"
72+
6973
config LB_ENABLE_NEW_IIC_DRIVER
7074
depends on ESP_IDF_VERSION >= 5.2.6
7175
bool "Enable new I2C driver"
72-
default "n"
76+
default "y"
7377
help
7478
Enable new I2C driver.
7579

components/led/lightbulb_driver/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.10.1"
1+
version: "1.11.0"
22
description: Provide multiple dimming driver solutions to easily build lightbulb applications
33
url: https://github.com/espressif/esp-iot-solution/tree/master/components/led/lightbulb_driver
44
dependencies:

0 commit comments

Comments
 (0)