summaryrefslogtreecommitdiffstats
path: root/keyboards/crkbd/rev1/rules.mk
diff options
context:
space:
mode:
authorLen Trigg <lenbok@gmail.com>2019-04-20 08:33:07 +0200
committerDrashna Jaelre <drashna@live.com>2019-04-20 08:33:07 +0200
commit8170be5b10e92a4f4a8c23ad0c9dd558c4fc90c7 (patch)
treec681be7ad7196b409dfb3baf1362c695000a4177 /keyboards/crkbd/rev1/rules.mk
parent4856552f8bf3d50a95396fc76e26669ed6f3d8b4 (diff)
downloadqmk_firmware-8170be5b10e92a4f4a8c23ad0c9dd558c4fc90c7.tar.gz
qmk_firmware-8170be5b10e92a4f4a8c23ad0c9dd558c4fc90c7.tar.xz
[Keyboard] crkbd: compile time hand-dependent rgb_matrix LED declarations (#5657)
Set RGB_MATRIX_SPLIT_RIGHT=yes when flashing the right hand side of the keyboard.
Diffstat (limited to 'keyboards/crkbd/rev1/rules.mk')
-rw-r--r--keyboards/crkbd/rev1/rules.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/crkbd/rev1/rules.mk b/keyboards/crkbd/rev1/rules.mk
index 6028b5a5b..f12849f98 100644
--- a/keyboards/crkbd/rev1/rules.mk
+++ b/keyboards/crkbd/rev1/rules.mk
@@ -1,3 +1,9 @@
+RGB_MATRIX_SPLIT_RIGHT = no # if no, order LEDs for left hand, if yes, order LEDs for right hand
+
+ifeq ($(strip $(RGB_MATRIX_SPLIT_RIGHT)), yes)
+ OPT_DEFS += -DRGB_MATRIX_SPLIT_RIGHT
+endif
+
SRC += rev1/matrix.c
SRC += rev1/split_util.c
SRC += rev1/split_scomm.c