diff options
author | Joel Challis <git@zvecr.com> | 2020-01-14 22:03:48 +0000 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2020-02-26 10:15:12 +0900 |
commit | 8d5c1033b34a4a75e0bce7886847bd73b5141160 (patch) | |
tree | 7e9bac40065d4b0e129883d57063f4f9d200dff4 | |
parent | 14ff12f1ab278eb75b14b14d223d70b6c234cbd3 (diff) |
Add ws2812 driver type define (#7888)
-rw-r--r-- | common_features.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk index da63a19fff..2969cf8477 100644 --- a/common_features.mk +++ b/common_features.mk @@ -278,6 +278,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes) $(error WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver) endif + OPT_DEFS += -DWS2812_DRIVER_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]')) + ifeq ($(strip $(WS2812_DRIVER)), bitbang) SRC += ws2812.c else |