~ruther/qmk_firmware

ref: d60d091a109cfb8490c94020fd8a516eaf90d30d qmk_firmware/keyboards/helix/rev2/override_helix_options.mk-maintenance -rw-r--r-- 1.4 KiB
d60d091a — Rutherther chore: draw keymap properly 9 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ifneq ($(strip $(HELIX)),)
  $(info -------------------------)
  $(info override_helix_options.mk)
  $(info -------------------------)
endif

define HELIX_OVERRIDE_PARSE
      ifeq ($(strip $1),back)
        LED_BACK_ENABLE = yes
        LED_UNDERGLOW_ENABLE = no
      endif
      ifeq ($(strip $1),under)
        LED_BACK_ENABLE = no
        LED_UNDERGLOW_ENABLE = yes
      endif
      ifneq ($(filter led-off led_off noback no-back nounder no-under,$(strip $1)),)
        LED_BACK_ENABLE = no
        LED_UNDERGLOW_ENABLE = no
      endif
      ifneq ($(filter core-oled core_oled newoled new-oled olednew oled-new,$(strip $1)),)
        OLED_ENABLE = yes
        OLED_SELECT = core
      endif
      ifneq ($(filter local-oled local_oled oldoled old-oled oledold oled-old,$(strip $1)),)
        OLED_ENABLE = yes
        OLED_SELECT = local
      endif
      ifneq ($(filter sc split-common split_common,$(strip $1)),)
        SPLIT_KEYBOARD = yes
      endif
      ifneq ($(filter nosc no-sc no-split-common no-split_common,$(strip $1)),)
        SPLIT_KEYBOARD = no
      endif
      ifeq ($(strip $1),scan)
          DEBUG_MATRIX_SCAN_RATE_ENABLE = yes
      endif
      ifeq ($(strip $1),scan-api)
          DEBUG_MATRIX_SCAN_RATE_ENABLE = api
      endif
      ifeq ($(strip $1),lto)
          LTO_ENABLE = yes
      endif
      ifneq ($(filter nolto no-lto no_lto,$(strip $1)),)
          LTO_ENABLE = no
      endif
endef # end of HELIX_OVERRIDE_PARSE
Do not follow this link