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:
commit
88839aef72
@ -1,5 +1,6 @@
|
|||||||
ifneq (,$(filter saul_default,$(USEMODULE)))
|
ifneq (,$(filter saul_default,$(USEMODULE)))
|
||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
|
USEMODULE += ws281x
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# include common nrf52 dependencies
|
# include common nrf52 dependencies
|
||||||
|
@ -57,6 +57,21 @@ extern "C" {
|
|||||||
#define BTN0_MODE GPIO_IN_PU
|
#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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user