2017-10-17 05:28:15 +02:00
|
|
|
# Copyright (c) 2017 Linaro Limited
|
2019-11-06 18:28:54 +01:00
|
|
|
# Copyright (c) 2019 Nordic Semiconductor ASA
|
|
|
|
#
|
2017-10-17 05:28:15 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# The following blog post is an excellent resource about pulse timing:
|
|
|
|
#
|
|
|
|
# https://wp.josh.com/2014/05/13/ws2812-neopixels-are-not-so-finicky-once-you-get-to-know-them/
|
|
|
|
|
2019-11-06 18:28:54 +01:00
|
|
|
config WS2812_STRIP_SPI
|
2024-03-12 01:37:33 +01:00
|
|
|
bool "WS2812 LED strip SPI driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_WORLDSEMI_WS2812_SPI_ENABLED
|
2024-03-09 13:50:36 +01:00
|
|
|
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_WORLDSEMI_WS2812_SPI),spi)
|
2017-10-17 05:28:15 +02:00
|
|
|
help
|
2024-03-12 01:37:33 +01:00
|
|
|
Enable driver for WS2812 (and compatibles) LED strip using SPI.
|
2019-11-06 18:28:54 +01:00
|
|
|
The SPI driver is portable, but requires significantly more
|
|
|
|
memory (1 byte of overhead per bit of pixel data).
|
2017-10-17 05:28:15 +02:00
|
|
|
|
2022-11-07 21:42:43 +01:00
|
|
|
config WS2812_STRIP_I2S
|
2024-03-12 01:37:33 +01:00
|
|
|
bool "WS2812 LED strip I2S driver"
|
|
|
|
default y
|
|
|
|
depends on DT_HAS_WORLDSEMI_WS2812_I2S_ENABLED
|
2024-03-09 13:50:36 +01:00
|
|
|
select I2S if $(dt_compat_on_bus,$(DT_COMPAT_WORLDSEMI_WS2812_I2S),i2s)
|
2022-11-07 21:42:43 +01:00
|
|
|
help
|
2024-03-12 01:37:33 +01:00
|
|
|
Enable driver for WS2812 (and compatibles) LED strip using I2S.
|
2022-11-07 21:42:43 +01:00
|
|
|
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.
|
|
|
|
|
2019-11-06 18:28:54 +01:00
|
|
|
config WS2812_STRIP_GPIO
|
2024-03-12 01:37:33 +01:00
|
|
|
bool "WS2812 LED strip GPIO driver"
|
2019-11-06 18:28:54 +01:00
|
|
|
# Only an Cortex-M0 inline assembly implementation for the nRF51
|
|
|
|
# is supported currently.
|
2024-03-12 01:37:33 +01:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_WORLDSEMI_WS2812_GPIO_ENABLED
|
2019-11-06 18:28:54 +01:00
|
|
|
depends on SOC_SERIES_NRF51X
|
2023-10-28 19:55:41 +02:00
|
|
|
select LED_STRIP_RGB_SCRATCH
|
2017-10-17 05:28:15 +02:00
|
|
|
help
|
2024-03-12 01:37:33 +01:00
|
|
|
Enable driver for WS2812 (and compatibles) LED strip directly controlling with GPIO.
|
2019-11-06 18:28:54 +01:00
|
|
|
The GPIO driver does bit-banging with inline assembly,
|
|
|
|
and is not available on all SoCs.
|
2017-10-17 05:28:15 +02:00
|
|
|
|
2021-05-19 12:19:38 +02:00
|
|
|
Note that this driver is not compatible with the Everlight B1414
|
|
|
|
controller.
|
|
|
|
|
2023-02-25 01:00:59 +01:00
|
|
|
config WS2812_STRIP_RPI_PICO_PIO
|
2024-03-12 01:37:33 +01:00
|
|
|
bool "WS2812 LED strip Raspberry Pi Pico PIO driver"
|
|
|
|
default y
|
2023-02-25 01:00:59 +01:00
|
|
|
depends on DT_HAS_WORLDSEMI_WS2812_RPI_PICO_PIO_ENABLED
|
|
|
|
select PICOSDK_USE_PIO
|
|
|
|
help
|
2024-03-12 01:37:33 +01:00
|
|
|
Enable driver for WS2812 (and compatibles) LED strip using
|
|
|
|
the RaspberryPi Pico's PIO.
|