aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/pico/keymaps/default/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/pico/keymaps/default/rules.mk')
-rw-r--r--keyboards/helix/pico/keymaps/default/rules.mk115
1 files changed, 115 insertions, 0 deletions
diff --git a/keyboards/helix/pico/keymaps/default/rules.mk b/keyboards/helix/pico/keymaps/default/rules.mk
new file mode 100644
index 000000000..18b1d596b
--- /dev/null
+++ b/keyboards/helix/pico/keymaps/default/rules.mk
@@ -0,0 +1,115 @@
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#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
7MOUSEKEY_ENABLE = no # Mouse keys(+4700)
8EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
9CONSOLE_ENABLE = no # Console for debug(+400)
10COMMAND_ENABLE = no # Commands for debug and configuration
11NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
13MIDI_ENABLE = no # MIDI controls
14AUDIO_ENABLE = yes # Audio output on port B5
15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19
20define 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 $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE))
27endef
28
29# Helix keyboard customize
30# you can edit follows 6 Variables
31# jp: 以下の6つの変数を必要に応じて編集します。
32OLED_ENABLE = no # OLED_ENABLE
33LOCAL_GLCDFONT = no # use each keymaps "helixfont.h" insted of "common/glcdfont.c"
34LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.)
35LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.)
36LED_ANIMATIONS = yes # LED animations
37IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone)
38
39#### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE.
40#### Do not enable these with audio at the same time.
41
42### Helix keyboard 'default' keymap: convenient command line option
43## make HELIX=<options> helix:defualt
44## option= oled | back | under | na | ios
45## ex.
46## make HELIX=oled helix:defualt
47## make HELIX=oled,back helix:defualt
48## make HELIX=oled,under helix:defualt
49## make HELIX=oled,back,na helix:defualt
50## make HELIX=oled,back,ios helix:defualt
51##
52ifneq ($(strip $(HELIX)),)
53 ifeq ($(findstring oled,$(HELIX)), oled)
54 OLED_ENABLE = yes
55 endif
56 ifeq ($(findstring back,$(HELIX)), back)
57 LED_BACK_ENABLE = yes
58 else ifeq ($(findstring under,$(HELIX)), under)
59 LED_UNDERGLOW_ENABLE = yes
60 endif
61 ifeq ($(findstring na,$(HELIX)), na)
62 LED_ANIMATIONS = no
63 endif
64 ifeq ($(findstring ios,$(HELIX)), ios)
65 IOS_DEVICE_ENABLE = yes
66 endif
67 $(eval $(call HELIX_CUSTOMISE_MSG))
68 $(info )
69endif
70
71# Uncomment these for checking
72# jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。
73# $(eval $(call HELIX_CUSTOMISE_MSG))
74# $(info )
75
76ifeq ($(strip $(LED_BACK_ENABLE)), yes)
77 RGBLIGHT_ENABLE = yes
78 OPT_DEFS += -DRGBLED_BACK
79 ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
80 $(eval $(call HELIX_CUSTOMISE_MSG))
81 $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes')
82 endif
83else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes)
84 RGBLIGHT_ENABLE = yes
85else
86 RGBLIGHT_ENABLE = no
87endif
88
89ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes)
90 OPT_DEFS += -DIOS_DEVICE_ENABLE
91endif
92
93ifeq ($(strip $(LED_ANIMATIONS)), yes)
94 OPT_DEFS += -DRGBLIGHT_ANIMATIONS
95endif
96
97ifeq ($(strip $(OLED_ENABLE)), yes)
98 OPT_DEFS += -DOLED_ENABLE
99endif
100
101ifeq ($(strip $(LOCAL_GLCDFONT)), yes)
102 OPT_DEFS += -DLOCAL_GLCDFONT
103endif
104
105# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
106SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
107
108ifndef QUANTUM_DIR
109 include ../../../../Makefile
110endif
111
112# Uncomment these for debugging
113# $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE))
114# $(info -- OPT_DEFS=$(OPT_DEFS))
115# $(info )