HCoop
/
jackhill
/
qmk
/
firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b69b1ad
)
Add ws2812 driver type define (#7888)
0.7.109
author
Joel Challis
<git@zvecr.com>
Tue, 14 Jan 2020 22:03:48 +0000
(22:03 +0000)
committer
fauxpark
<fauxpark@gmail.com>
Tue, 14 Jan 2020 22:03:48 +0000
(09:03 +1100)
common_features.mk
patch
|
blob
|
blame
|
history
diff --git
a/common_features.mk
b/common_features.mk
index
01ceb82
..
09d01de
100644
(file)
--- 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