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

tests/driver_ws281x: don't overwrite board definition

If a board has fixed defines for `WS281X_PARAM_PIN` and `WS281X_PARAM_NUMOF`
the test will overwrite them.
This leads to the LEDs *not* working in with the test, which is very confusing.
This commit is contained in:
Benjamin Valentin 2023-01-18 13:48:54 +01:00
parent 7c0dd96a1c
commit c8651dd5ac

View File

@ -2,8 +2,8 @@ BOARD ?= atmega328p
include ../Makefile.tests_common
# Update this to your needs
PIN ?= GPIO_PIN(0, 0)
N ?= 8
# PIN ?= GPIO_PIN(0, 0)
# N ?= 8
USEMODULE += ws281x
USEMODULE += xtimer
@ -14,5 +14,9 @@ BOARD_BLACKLIST := waspmote-pro
include $(RIOTBASE)/Makefile.include
CFLAGS += '-DWS281X_PARAM_PIN=$(PIN)'
CFLAGS += '-DWS281X_PARAM_NUMOF=$(N)'
ifneq (, $(PIN))
CFLAGS += '-DWS281X_PARAM_PIN=$(PIN)'
endif
ifneq (, $(N))
CFLAGS += '-DWS281X_PARAM_NUMOF=$(N)'
endif