mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
feather-nrf52840: add config for NeoPixel LED
This commit is contained in:
parent
7832253f39
commit
5dd5400ee1
@ -1,5 +1,6 @@
|
||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||
USEMODULE += saul_gpio
|
||||
USEMODULE += ws281x
|
||||
endif
|
||||
|
||||
# include common nrf52 dependencies
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user