mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 17:38:48 +04:00
Add ucidef_set_led_brightness() to set up a static LED with an optional brightness level, complementing ucidef_set_led_default() for hardware that supports per-channel current or PWM control. The function writes a "brightness" type to board.json alongside the default on/off state. config_generate picks this up and writes the brightness option to the UCI LED config, where the led init script already knows to apply it. Signed-off-by: Manuel Fombuena <fombuena@outlook.com> Link: https://github.com/openwrt/openwrt/pull/23457 Signed-off-by: Robert Marko <robimarko@gmail.com>