1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #21017 from miri64/feather-nrf52840/enh/ws281x

feather-nrf52840: add config for NeoPixel LED
This commit is contained in:
Marian Buschsieweke 2024-11-21 14:54:25 +00:00 committed by GitHub
commit 88839aef72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,6 @@
ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
USEMODULE += ws281x
endif
# include common nrf52 dependencies

View File

@ -57,6 +57,21 @@ extern "C" {
#define BTN0_MODE GPIO_IN_PU
/** @} */
/**
* @name WS281x RGB LEDs configuration
* @{
*/
#ifndef WS281X_PARAM_PIN
/**
* @brief GPIO pin connected to the data pin of the first LED
*/
#define WS281X_PARAM_PIN GPIO_PIN(0, 16)
#endif
#ifndef WS281X_PARAM_NUMOF
#define WS281X_PARAM_NUMOF (1U) /**< Number of LEDs chained */
#endif
/** @} */
#ifdef __cplusplus
}
#endif