~ruther/qmk_firmware

ref: 16d2db5048acedfc9dd5f8e85ca19e50f139ba13 qmk_firmware/keyboards/rgbkb/pan/post_rules.mk -rw-r--r-- 865 bytes
16d2db50 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: I-J (#23767) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RGB_MATRIX_KEYPRESSES ?= no          # Enable reactive per-key effects.
RGB_MATRIX_FRAMEBUFFER_EFFECTS ?= no # Enable frame buffer effects like the typing heatmap.

# RGB layout selection
STAGGERED_LAYOUT ?= no # If you soldered R1-A12 and R4-A12, enable this.
RGB_ENCODERS ?= yes    # For RGB encoders, solder on both WS2811 chips

ifeq ($(strip $(RGB_MATRIX_KEYPRESSES)), yes)
    OPT_DEFS += -DRGB_MATRIX_KEYPRESSES
endif

ifeq ($(strip $(RGB_MATRIX_FRAMEBUFFER)), yes)
    OPT_DEFS += -DRGB_MATRIX_FRAMEBUFFER_EFFECTS
endif

ifeq ($(strip $(STAGGERED_LAYOUT)), yes)
    OPT_DEFS += -DSTAGGERED_LAYOUT
endif

ifeq ($(strip $(RGB_ENCODERS)), yes)
    OPT_DEFS += -DRGB_ENCODERS
endif

ifeq ($(strip $(RGB_ENCODERS)), yes)
    ifeq ($(strip $(STAGGERED_LAYOUT)), yes)
        OPT_DEFS += -DSTAGGERED_RGB_ENCODERS=$(strip $(STAGGERED_RGB_ENCODERS))
    endif
endif
Do not follow this link