From 8a15b8c5a1a269b978cfe7a5badd870ddce16dab Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Tue, 9 Apr 2024 15:39:30 +0200 Subject: [PATCH] boards/feather-nrf52840-sense: Expose saul ws281x --- boards/feather-nrf52840-sense/Makefile.dep | 1 + boards/feather-nrf52840-sense/include/board.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/boards/feather-nrf52840-sense/Makefile.dep b/boards/feather-nrf52840-sense/Makefile.dep index d7a8038212..c52f9ec66b 100644 --- a/boards/feather-nrf52840-sense/Makefile.dep +++ b/boards/feather-nrf52840-sense/Makefile.dep @@ -5,6 +5,7 @@ ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += lsm6dsxx USEMODULE += saul_gpio USEMODULE += sht3x + USEMODULE += ws281x endif # include common nrf52 dependencies diff --git a/boards/feather-nrf52840-sense/include/board.h b/boards/feather-nrf52840-sense/include/board.h index 27de7b8414..fbdfc325da 100644 --- a/boards/feather-nrf52840-sense/include/board.h +++ b/boards/feather-nrf52840-sense/include/board.h @@ -97,6 +97,9 @@ extern "C" { #ifndef WS281X_PARAM_PIN #define WS281X_PARAM_PIN GPIO_PIN(0, 16) /**< GPIO pin connected to the data pin of the first LED */ #endif +#ifndef WS281X_PARAM_NUMOF +#define WS281X_PARAM_NUMOF (1U) /**< Number of LEDs chained */ +#endif /** @} */ #ifdef __cplusplus