]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/helix/rev2/keymaps/five_rows/rules.mk
New keymap for The Helix keyboard("five_rows") (#2592)
[qmk_firmware.git] / keyboards / helix / rev2 / keymaps / five_rows / rules.mk
1
2 # Build Options
3 #   change to "no" to disable the options, or define them in the Makefile in
4 #   the appropriate keymap folder that will get included automatically
5 #
6 BOOTMAGIC_ENABLE = no       # Virtual DIP switch configuration(+1000)
7 MOUSEKEY_ENABLE = no       # Mouse keys(+4700)
8 EXTRAKEY_ENABLE = no       # Audio control and System control(+450)
9 CONSOLE_ENABLE = no         # Console for debug(+400)
10 COMMAND_ENABLE = no        # Commands for debug and configuration
11 NKRO_ENABLE = no            # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12 BACKLIGHT_ENABLE = no      # Enable keyboard backlight functionality
13 MIDI_ENABLE = no            # MIDI controls
14 AUDIO_ENABLE = no           # Audio output on port C6
15 UNICODE_ENABLE = no         # Unicode
16 BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
17 RGBLIGHT_ENABLE = no        # Enable WS2812 RGB underlight.  Do not enable this with audio at the same time.
18 SWAP_HANDS_ENABLE = no        # Enable one-hand typing
19
20 define HELIX_CUSTOMISE_MSG
21   $(info Helix customize)
22   $(info -  OLED_ENABLE=$(OLED_ENABLE))
23   $(info -  LED_BACK_ENABLE=$(LED_BACK_ENABLE))
24   $(info -  LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE))
25   $(info -  LED_ANIMATION=$(LED_ANIMATIONS))
26 endef
27
28 # Helix keyboard customize
29 # you can edit follows 4 Variables
30 #  jp: 以下の4つの変数を必要に応じて編集します。
31 OLED_ENABLE = no            # OLED_ENABLE
32 LED_BACK_ENABLE = no        # LED backlight (Enable WS2812 RGB underlight.)
33 LED_UNDERGLOW_ENABLE = no   # LED underglow (Enable WS2812 RGB underlight.)
34 LED_ANIMATIONS = yes        # LED animations
35
36 ####  LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
37 ####    Do not enable these with audio at the same time.
38
39 # Uncomment these for checking
40 #   jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
41 # $(eval $(call HELIX_CUSTOMISE_MSG))
42 # $(info )
43
44 ifeq ($(strip $(LED_BACK_ENABLE)), yes)
45   RGBLIGHT_ENABLE = yes
46   OPT_DEFS += -DRGBLED_BACK
47   ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
48     $(eval $(call HELIX_CUSTOMISE_MSG))
49     $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
50   endif
51 else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
52   RGBLIGHT_ENABLE = yes
53 else
54   RGBLIGHT_ENABLE = no
55 endif
56
57 ifeq ($(strip $(LED_ANIMATIONS)), yes)
58     OPT_DEFS += -DRGBLIGHT_ANIMATIONS
59 endif
60
61 ifeq ($(strip $(OLED_ENABLE)), yes)
62     OPT_DEFS += -DOLED_ENABLE
63 endif
64
65 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
66 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
67
68 ifndef QUANTUM_DIR
69         include ../../../../Makefile
70 endif
71
72 # Uncomment these for debugging
73 # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
74 # $(info -- OPT_DEFS=$(OPT_DEFS))
75 # $(info )