drivers: led_strip: Enabling config with DT_HAS_..
Applying the modern way which is adding `default y` and `depends on DT_HAS_...` to enable configs. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
parent
7d99de6dfa
commit
7b61d1c43c
|
@ -6,6 +6,8 @@
|
|||
|
||||
config APA102_STRIP
|
||||
bool "APA102 SPI LED strip driver"
|
||||
default y
|
||||
depends on DT_HAS_APA_APA102_ENABLED
|
||||
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_APA_APA102),spi)
|
||||
select LED_STRIP_RGB_SCRATCH
|
||||
help
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
config LPD880X_STRIP
|
||||
bool "LPD880x SPI LED strip driver"
|
||||
default y
|
||||
depends on DT_HAS_GREELED_LPD8803_ENABLED || DT_HAS_GREELED_LPD8806_ENABLED
|
||||
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_GREELED_LPD8803),spi) \
|
||||
|| $(dt_compat_on_bus,$(DT_COMPAT_GREELED_LPD8806),spi)
|
||||
help
|
||||
|
|
|
@ -8,27 +8,36 @@
|
|||
# https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/
|
||||
|
||||
config WS2812_STRIP_SPI
|
||||
bool "SPI driver"
|
||||
bool "WS2812 LED strip SPI driver"
|
||||
default y
|
||||
depends on DT_HAS_WORLDSEMI_WS2812_SPI_ENABLED
|
||||
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WORLDSEMI_WS2812_SPI),spi)
|
||||
help
|
||||
Enable driver for WS2812 (and compatibles) LED strip using SPI.
|
||||
The SPI driver is portable, but requires significantly more
|
||||
memory (1 byte of overhead per bit of pixel data).
|
||||
|
||||
config WS2812_STRIP_I2S
|
||||
bool "I2S driver"
|
||||
bool "WS2812 LED strip I2S driver"
|
||||
default y
|
||||
depends on DT_HAS_WORLDSEMI_WS2812_I2S_ENABLED
|
||||
select I2S if $(dt_compat_on_bus,$(DT_COMPAT_WORLDSEMI_WS2812_I2S),i2s)
|
||||
help
|
||||
Enable driver for WS2812 (and compatibles) LED strip using I2S.
|
||||
Uses the I2S peripheral, memory usage is 4 bytes per color,
|
||||
times the number of pixels. A few more for the start and end
|
||||
delay. The reset delay has a coarse resolution of ~20us.
|
||||
|
||||
config WS2812_STRIP_GPIO
|
||||
bool "GPIO driver"
|
||||
bool "WS2812 LED strip GPIO driver"
|
||||
# Only an Cortex-M0 inline assembly implementation for the nRF51
|
||||
# is supported currently.
|
||||
default y
|
||||
depends on DT_HAS_WORLDSEMI_WS2812_GPIO_ENABLED
|
||||
depends on SOC_SERIES_NRF51X
|
||||
select LED_STRIP_RGB_SCRATCH
|
||||
help
|
||||
Enable driver for WS2812 (and compatibles) LED strip directly controlling with GPIO.
|
||||
The GPIO driver does bit-banging with inline assembly,
|
||||
and is not available on all SoCs.
|
||||
|
||||
|
@ -36,8 +45,10 @@ config WS2812_STRIP_GPIO
|
|||
controller.
|
||||
|
||||
config WS2812_STRIP_RPI_PICO_PIO
|
||||
bool "Raspberry Pi Pico PIO"
|
||||
bool "WS2812 LED strip Raspberry Pi Pico PIO driver"
|
||||
default y
|
||||
depends on DT_HAS_WORLDSEMI_WS2812_RPI_PICO_PIO_ENABLED
|
||||
select PICOSDK_USE_PIO
|
||||
help
|
||||
Use the PIO feature available on RaspberryPi Pico devices.
|
||||
Enable driver for WS2812 (and compatibles) LED strip using
|
||||
the RaspberryPi Pico's PIO.
|
||||
|
|
|
@ -2,5 +2,4 @@
|
|||
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LED_STRIP=y
|
||||
CONFIG_APA102_STRIP=y
|
||||
CONFIG_POLL=y
|
||||
|
|
|
@ -5,4 +5,3 @@ CONFIG_BOOT_BANNER=y
|
|||
CONFIG_POLL=y
|
||||
|
||||
CONFIG_LED_STRIP=y
|
||||
CONFIG_LPD880X_STRIP=y
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_RPI_PICO_PIO=y
|
|
@ -1,3 +1,2 @@
|
|||
CONFIG_WS2812_STRIP_RPI_PICO_PIO=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_GPIO_HOGS=y
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_GPIO=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_GPIO=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_I2S=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_I2S=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_WS2812_STRIP_SPI=y
|
Loading…
Reference in a new issue