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:
parent
7c0dd96a1c
commit
c8651dd5ac
@ -2,8 +2,8 @@ BOARD ?= atmega328p
|
|||||||
include ../Makefile.tests_common
|
include ../Makefile.tests_common
|
||||||
|
|
||||||
# Update this to your needs
|
# Update this to your needs
|
||||||
PIN ?= GPIO_PIN(0, 0)
|
# PIN ?= GPIO_PIN(0, 0)
|
||||||
N ?= 8
|
# N ?= 8
|
||||||
|
|
||||||
USEMODULE += ws281x
|
USEMODULE += ws281x
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
@ -14,5 +14,9 @@ BOARD_BLACKLIST := waspmote-pro
|
|||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|
||||||
CFLAGS += '-DWS281X_PARAM_PIN=$(PIN)'
|
ifneq (, $(PIN))
|
||||||
CFLAGS += '-DWS281X_PARAM_NUMOF=$(N)'
|
CFLAGS += '-DWS281X_PARAM_PIN=$(PIN)'
|
||||||
|
endif
|
||||||
|
ifneq (, $(N))
|
||||||
|
CFLAGS += '-DWS281X_PARAM_NUMOF=$(N)'
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user