diff options
author | Len Trigg <lenbok@gmail.com> | 2019-04-20 18:33:07 +1200 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-04-19 23:33:07 -0700 |
commit | 8170be5b10e92a4f4a8c23ad0c9dd558c4fc90c7 (patch) | |
tree | c681be7ad7196b409dfb3baf1362c695000a4177 /keyboards/crkbd/rev1/rules.mk | |
parent | 4856552f8bf3d50a95396fc76e26669ed6f3d8b4 (diff) | |
download | qmk_firmware-8170be5b10e92a4f4a8c23ad0c9dd558c4fc90c7.tar.gz |
[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.mk | 6 |
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 |