mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-25 07:27:16 +00:00
This example drives the APA102 LED-strip character driver: it opens /dev/leddrv0 and writes an array of struct apa102_ledstrip_s from <nuttx/leds/apa102.h>, which is provided by drivers/leds/apa102.c (CONFIG_LEDS_APA102). CONFIG_LCD_APA102 selects an unrelated driver, drivers/lcd/apa102.c, which drives an APA102 matrix as a framebuffer LCD and registers no /dev/leddrvN node at all. The wrong dependency makes the example unusable either way: with the LED strip driver enabled the example cannot be selected in menuconfig, and with CONFIG_LCD_APA102 the dependency is met but the driver the example needs is absent, so it fails at open(). Signed-off-by: Ricard Rosson <ricard@groundbits.com> Assisted-by: Claude Opus 5 (Claude Code)
22 lines
475 B
Text
22 lines
475 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_APA102
|
|
tristate "APA102 LED Strip example"
|
|
default n
|
|
depends on LEDS_APA102
|
|
---help---
|
|
Enable the APA102 example
|
|
|
|
if EXAMPLES_APA102
|
|
|
|
config EXAMPLES_APA102_PROGNAME
|
|
string "Program name"
|
|
default "apa102"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
endif
|