mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-22 14:25:21 +00:00
This patch introduces the "led" shell command. This allows to run the LED API functions (and to test the LED drivers) from the Zephyr shell. The following subcommands are supported: - on - off - get_info - set_brightness - set_color - set_channel - write_channels Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
36 lines
727 B
Plaintext
36 lines
727 B
Plaintext
# Copyright (c) 2018 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Top-level configuration file for LED drivers.
|
|
|
|
menuconfig LED
|
|
bool "LED drivers"
|
|
help
|
|
Include LED drivers in the system configuration.
|
|
|
|
if LED
|
|
|
|
module = LED
|
|
module-str = led
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config LED_INIT_PRIORITY
|
|
int "LED initialization priority"
|
|
default 90
|
|
help
|
|
System initialization priority for LED drivers.
|
|
|
|
config LED_SHELL
|
|
bool "LED shell"
|
|
depends on SHELL
|
|
help
|
|
Enable LED shell for testing.
|
|
|
|
source "drivers/led/Kconfig.ht16k33"
|
|
source "drivers/led/Kconfig.lp3943"
|
|
source "drivers/led/Kconfig.lp503x"
|
|
source "drivers/led/Kconfig.lp5562"
|
|
source "drivers/led/Kconfig.pca9633"
|
|
|
|
endif # LED
|