Skip to content

Commit 988bb92

Browse files
committed
feat(lightbulb_driver): Update driver dependency
1 parent 15c264b commit 988bb92

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

components/led/lightbulb_driver/CHANGELOG.md

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

3+
## v1.10.2 - 2025-09-16
4+
5+
* Clean up the component dependency, don't depend on the `driver` component directly
6+
37
## v1.10.1 - 2025-09-03
48

59
### 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ menu "LightBulb Driver Config"
6969
config LB_ENABLE_NEW_IIC_DRIVER
7070
depends on ESP_IDF_VERSION >= 5.2.6
7171
bool "Enable new I2C driver"
72-
default "n"
72+
default "y"
7373
help
7474
Enable new I2C driver.
7575

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.10.2"
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)