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

feather-nrf52840: add config for NeoPixel LED

This commit is contained in:
Martine S. Lenders 2024-11-21 13:08:08 +01:00
parent 7832253f39
commit 5dd5400ee1
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80
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