diff options
author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2018-04-16 01:54:56 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-04-15 09:54:56 -0700 |
commit | e2fb3079c7168ba109dfeeec20931ad75870186a (patch) | |
tree | 33b9b4787204e03fa5c1c66dc4128be0fd237f67 /keyboards/helix/rev2/keymaps/five_rows/rules.mk | |
parent | 13cdfb465d5f6a1833866c3bccde39db70054a85 (diff) |
update Helix keymap 'five_rows' (#2635)
* add 'HELIX=' option for build
* add IOS_DEVICE_ENABLE for iPad
* shrink size to helix five_rows keymap.c
* shrink size. _ADJUST number change
* add KEYPAD layer
* modify keypad leyer
* display RGB mode on slave side OLED
* fix Colemak, Dvorak center DEL to BS
* change LEFT BS to LEFT SP and add AUX layer for try old map
* update update_base_layer()
* add right keypad and keypad func layer
* use MO() macro insted of LOWER,RAISE,ADJUST custom key-code
* remove LOWER,RAISE,ADJUST custom key-code
* use MO(_LOWER|_RAISE|_ADJUST)
* relayout ADJUST layer
* modify Function Layer. PGUP,PGDN swap HOME,END
* add Keypad aux layer for '00' send
* update README.md, README_jp.md
* fix README.md
* fix README.md, README_jp.md
Diffstat (limited to 'keyboards/helix/rev2/keymaps/five_rows/rules.mk')
-rw-r--r-- | keyboards/helix/rev2/keymaps/five_rows/rules.mk | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/keyboards/helix/rev2/keymaps/five_rows/rules.mk b/keyboards/helix/rev2/keymaps/five_rows/rules.mk index bde606238e..67344f94f0 100644 --- a/keyboards/helix/rev2/keymaps/five_rows/rules.mk +++ b/keyboards/helix/rev2/keymaps/five_rows/rules.mk @@ -23,19 +23,50 @@ define HELIX_CUSTOMISE_MSG $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE)) $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE)) $(info - LED_ANIMATION=$(LED_ANIMATIONS)) + $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE)) endef # Helix keyboard customize -# you can edit follows 4 Variables -# jp: 以下の4つの変数を必要に応じて編集します。 +# you can edit follows 5 Variables +# jp: 以下の5つの変数を必要に応じて編集します。 OLED_ENABLE = no # OLED_ENABLE LED_BACK_ENABLE = no # LED backlight (Enable WS2812 RGB underlight.) LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight.) LED_ANIMATIONS = yes # LED animations +IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone) #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE. #### Do not enable these with audio at the same time. +### Helix keyboard 'five_rows' keymap: convenient command line option +## make HELIX=<options> helix:five_rows +## option= oled | back | under | na | ios +## ex. +## make HELIX=oled helix:five_rows +## make HELIX=oled,back helix:five_rows +## make HELIX=oled,under helix:five_rows +## make HELIX=oled,back,na helix:five_rows +## make HELIX=oled,back,ios helix:five_rows +## +ifneq ($(strip $(HELIX)),) + ifeq ($(findstring oled,$(HELIX)), oled) + OLED_ENABLE = yes + endif + ifeq ($(findstring back,$(HELIX)), back) + LED_BACK_ENABLE = yes + else ifeq ($(findstring under,$(HELIX)), under) + LED_UNDERGLOW_ENABLE = yes + endif + ifeq ($(findstring na,$(HELIX)), na) + LED_ANIMATIONS = no + endif + ifeq ($(findstring ios,$(HELIX)), ios) + IOS_DEVICE_ENABLE = yes + endif + $(eval $(call HELIX_CUSTOMISE_MSG)) + $(info ) +endif + # Uncomment these for checking # jp: コンパイル時にカスタマイズの状態を表示したい時はコメントをはずします。 # $(eval $(call HELIX_CUSTOMISE_MSG)) @@ -54,6 +85,10 @@ else RGBLIGHT_ENABLE = no endif +ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) + OPT_DEFS += -DIOS_DEVICE_ENABLE +endif + ifeq ($(strip $(LED_ANIMATIONS)), yes) OPT_DEFS += -DRGBLIGHT_ANIMATIONS endif |