2015-12-15 15:05:10 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
menu "LED Support"
|
|
|
|
|
2015-12-15 15:23:53 +01:00
|
|
|
config USERLED
|
|
|
|
bool "LED driver"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable standard user LED upper half driver.
|
|
|
|
|
|
|
|
if USERLED
|
|
|
|
|
|
|
|
config USERLED_LOWER
|
|
|
|
bool "Generic Lower Half LED Driver"
|
|
|
|
default n
|
2020-06-06 12:22:49 +02:00
|
|
|
depends on ARCH_HAVE_LEDS
|
2015-12-15 15:23:53 +01:00
|
|
|
---help---
|
|
|
|
If the board supports the standard LED interfaces as
|
|
|
|
defined in include/nuttx/board.h header file, then this
|
|
|
|
standard LED lower half driver might be usable.
|
|
|
|
|
|
|
|
In order for this generic driver to be usable:
|
|
|
|
|
|
|
|
1. The board implementation must provide the LED
|
|
|
|
interfaces as defined in include/nuttx/board.h
|
|
|
|
|
|
|
|
If your board does not meet these requirements, then the
|
|
|
|
userled_lower.c file can still be copied to your your
|
|
|
|
board src/ directory and modified for your specific board
|
|
|
|
requirements.
|
|
|
|
|
2021-10-18 10:03:33 +02:00
|
|
|
config USERLED_LOWER_READSTATE
|
|
|
|
bool "LED Driver Read Actual Pin State"
|
|
|
|
default n
|
|
|
|
depends on USERLED_LOWER
|
|
|
|
---help---
|
|
|
|
Extends the standard LED interface as defined in the
|
|
|
|
include/nuttx/board.h header file with a function that
|
|
|
|
checks the actual state of the pin controlling the LED,
|
|
|
|
which can be used to find malfunctioning LEDs.
|
|
|
|
|
2015-12-15 15:23:53 +01:00
|
|
|
endif # USERLED
|
|
|
|
|
2017-09-19 00:48:55 +02:00
|
|
|
config LEDS_APA102
|
|
|
|
bool "APA102 LED Strip"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
Enable support for the APA102 LED Strip driver.
|
|
|
|
|
2018-07-22 23:13:39 +02:00
|
|
|
config LEDS_MAX7219
|
|
|
|
bool "MAX7219 Numeric Display"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
Enable support for the MAX7219 to control 7-segment displays.
|
|
|
|
|
2016-02-22 15:43:32 +01:00
|
|
|
config RGBLED
|
2019-10-06 05:39:12 +02:00
|
|
|
bool "RGB LED Driver Support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This selection enables building of the "upper-half" RGB LED driver.
|
|
|
|
See include/nuttx/rgbled.h for further PWM driver information.
|
2016-02-22 15:43:32 +01:00
|
|
|
|
2017-07-27 15:43:59 +02:00
|
|
|
config RGBLED_INVERT
|
|
|
|
bool "Invert RGB LED Output"
|
|
|
|
depends on RGBLED
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If the board has a common anode RGB LED (a LOW output turns ON
|
|
|
|
each LED), this selection inverts the outputs so that the
|
|
|
|
colors are displayed correctly.
|
|
|
|
|
2017-07-28 14:54:38 +02:00
|
|
|
config RGBLED_LIGHTNESS_CORRECTION
|
|
|
|
bool "Apply Lightness Correction"
|
|
|
|
depends on RGBLED
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This selection enables an approximate CIE 1931 lightness
|
|
|
|
correction which helps the RGB LED visually fade and blend
|
|
|
|
in a more linear, smooth, and visually appealing fashion.
|
|
|
|
|
2015-12-15 15:05:10 +01:00
|
|
|
config PCA9635PW
|
|
|
|
bool "PCA9635PW I2C LED Driver"
|
|
|
|
default n
|
|
|
|
select I2C
|
|
|
|
---help---
|
|
|
|
Enable support for the NXP PCA9635PW LED driver which can be
|
|
|
|
utilized to drive up to 16 LED's.
|
|
|
|
|
2016-06-15 00:09:30 +02:00
|
|
|
config NCP5623C
|
|
|
|
bool "NCP5623C I2C LED Driver"
|
|
|
|
default n
|
|
|
|
select I2C
|
|
|
|
---help---
|
|
|
|
Enable support for the onsemi NCP5623C LED driver which can be
|
|
|
|
utilized to drive up to 3 LED's.
|
|
|
|
|
2020-09-14 22:41:49 +02:00
|
|
|
config WS2812
|
|
|
|
bool "WS2812 LED Driver"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
Enable support for the Worldsemi WS2812 LED driver which commonly
|
|
|
|
found in LED strips.
|
|
|
|
NOTE: This device is a one wire device and has no CS or RESET
|
|
|
|
line it must have exclusive use of the bus!
|
|
|
|
|
|
|
|
config WS2812_FREQUENCY
|
|
|
|
int "WS2812 LED Driver SPI Frequency"
|
|
|
|
default 8000000
|
|
|
|
depends on WS2812
|
|
|
|
|
2015-12-15 15:05:10 +01:00
|
|
|
endmenu # LED Support
|