diff options
Diffstat (limited to 'keyboards/zinc/keymaps/default/rules.mk')
| -rw-r--r-- | keyboards/zinc/keymaps/default/rules.mk | 57 |
1 files changed, 48 insertions, 9 deletions
diff --git a/keyboards/zinc/keymaps/default/rules.mk b/keyboards/zinc/keymaps/default/rules.mk index c980f7d00..32e0f2161 100644 --- a/keyboards/zinc/keymaps/default/rules.mk +++ b/keyboards/zinc/keymaps/default/rules.mk | |||
| @@ -20,6 +20,9 @@ define ZINC_CUSTOMISE_MSG | |||
| 20 | $(info Zinc customize) | 20 | $(info Zinc customize) |
| 21 | $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE)) | 21 | $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE)) |
| 22 | $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE)) | 22 | $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE)) |
| 23 | $(info - LED_BOTH_ENABLE=$(LED_BOTH_ENABLE)) | ||
| 24 | $(info - LED_RGB_CONT=$(LED_RGB_CONT)) | ||
| 25 | $(info - RGB_MATRIX=$(RGB_MATRIX)) | ||
| 23 | $(info - LED_ANIMATION=$(LED_ANIMATIONS)) | 26 | $(info - LED_ANIMATION=$(LED_ANIMATIONS)) |
| 24 | $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE)) | 27 | $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE)) |
| 25 | endef | 28 | endef |
| @@ -27,6 +30,10 @@ endef | |||
| 27 | # Zinc keyboard customize | 30 | # Zinc keyboard customize |
| 28 | LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight) | 31 | LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight) |
| 29 | LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight) | 32 | LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight) |
| 33 | LED_BOTH_ENABLE = no # LED backlight and underglow | ||
| 34 | LED_RGB_CONT = no # LED continuous backlight or/and underglow between left Zinc and right Zinc | ||
| 35 | RGB_MATRIX = no # RGB LED Matrix | ||
| 36 | RGB_MATRIX_SPLIT_RIGHT = no # RGB Matrix for RIGHT Hand | ||
| 30 | LED_ANIMATIONS = yes # LED animations | 37 | LED_ANIMATIONS = yes # LED animations |
| 31 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone) | 38 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone) |
| 32 | Link_Time_Optimization = no # if firmware size over limit, try this option | 39 | Link_Time_Optimization = no # if firmware size over limit, try this option |
| @@ -36,7 +43,7 @@ Link_Time_Optimization = no # if firmware size over limit, try this option | |||
| 36 | 43 | ||
| 37 | ### Zinc keyboard 'default' keymap: convenient command line option | 44 | ### Zinc keyboard 'default' keymap: convenient command line option |
| 38 | ## make ZINC=<options> zinc:defualt | 45 | ## make ZINC=<options> zinc:defualt |
| 39 | ## option= back | under | na | ios | 46 | ## option= back | under | both | cont | matrix | na | ios |
| 40 | ## ex. | 47 | ## ex. |
| 41 | ## make ZINC=under zinc:defualt | 48 | ## make ZINC=under zinc:defualt |
| 42 | ## make ZINC=under,ios zinc:defualt | 49 | ## make ZINC=under,ios zinc:defualt |
| @@ -47,9 +54,22 @@ Link_Time_Optimization = no # if firmware size over limit, try this option | |||
| 47 | ifneq ($(strip $(ZINC)),) | 54 | ifneq ($(strip $(ZINC)),) |
| 48 | ifeq ($(findstring back,$(ZINC)), back) | 55 | ifeq ($(findstring back,$(ZINC)), back) |
| 49 | LED_BACK_ENABLE = yes | 56 | LED_BACK_ENABLE = yes |
| 50 | else ifeq ($(findstring under,$(ZINC)), under) | 57 | endif |
| 58 | ifeq ($(findstring under,$(ZINC)), under) | ||
| 51 | LED_UNDERGLOW_ENABLE = yes | 59 | LED_UNDERGLOW_ENABLE = yes |
| 52 | endif | 60 | endif |
| 61 | ifeq ($(findstring both,$(ZINC)), both) | ||
| 62 | LED_BOTH_ENABLE = yes | ||
| 63 | endif | ||
| 64 | ifeq ($(findstring cont,$(ZINC)), cont) | ||
| 65 | LED_RGB_CONT = yes | ||
| 66 | endif | ||
| 67 | ifeq ($(findstring matrix,$(ZINC)), matrix) | ||
| 68 | RGB_MATRIX = yes | ||
| 69 | endif | ||
| 70 | ifeq ($(findstring right,$(ZINC)), right) | ||
| 71 | RGB_MATRIX_SPLIT_RIGHT = yes | ||
| 72 | endif | ||
| 53 | ifeq ($(findstring na,$(ZINC)), na) | 73 | ifeq ($(findstring na,$(ZINC)), na) |
| 54 | LED_ANIMATIONS = no | 74 | LED_ANIMATIONS = no |
| 55 | endif | 75 | endif |
| @@ -62,10 +82,11 @@ endif | |||
| 62 | 82 | ||
| 63 | ifeq ($(strip $(LED_BACK_ENABLE)), yes) | 83 | ifeq ($(strip $(LED_BACK_ENABLE)), yes) |
| 64 | RGBLIGHT_ENABLE = yes | 84 | RGBLIGHT_ENABLE = yes |
| 65 | OPT_DEFS += -DRGBLED_BACK | ||
| 66 | ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes) | 85 | ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes) |
| 67 | $(eval $(call ZINC_CUSTOMISE_MSG)) | 86 | OPT_DEFS += -DRGBLED_BOTH |
| 68 | $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes') | 87 | $(info LED_BOTH_ENABLE option is enabled instead of LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE) |
| 88 | else | ||
| 89 | OPT_DEFS += -DRGBLED_BACK | ||
| 69 | endif | 90 | endif |
| 70 | else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes) | 91 | else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes) |
| 71 | RGBLIGHT_ENABLE = yes | 92 | RGBLIGHT_ENABLE = yes |
| @@ -73,18 +94,36 @@ else | |||
| 73 | RGBLIGHT_ENABLE = no | 94 | RGBLIGHT_ENABLE = no |
| 74 | endif | 95 | endif |
| 75 | 96 | ||
| 97 | ifeq ($(strip $(LED_BOTH_ENABLE)), yes) | ||
| 98 | RGBLIGHT_ENABLE = yes | ||
| 99 | OPT_DEFS += -DRGBLED_BOTH | ||
| 100 | endif | ||
| 101 | |||
| 102 | ifeq ($(strip $(LED_RGB_CONT)), yes) | ||
| 103 | OPT_DEFS += -DRGBLED_CONT | ||
| 104 | endif | ||
| 105 | |||
| 106 | ifeq ($(strip $(RGB_MATRIX)), yes) | ||
| 107 | RGBLIGHT_ENABLE = no | ||
| 108 | RGB_MATRIX_ENABLE = WS2812 | ||
| 109 | endif | ||
| 110 | |||
| 76 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | 111 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) |
| 77 | OPT_DEFS += -DIOS_DEVICE_ENABLE | 112 | OPT_DEFS += -DIOS_DEVICE_ENABLE |
| 78 | endif | 113 | endif |
| 79 | 114 | ||
| 80 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | 115 | ifeq ($(strip $(LED_ANIMATIONS)), yes) |
| 81 | # OPT_DEFS += -DRGBLIGHT_ANIMATIONS | 116 | # OPT_DEFS += -DRGBLIGHT_ANIMATIONS |
| 82 | OPT_DEFS += -DLED_ANIMATIONS | 117 | OPT_DEFS += -DLED_ANIMATIONS |
| 118 | |||
| 119 | endif | ||
| 83 | 120 | ||
| 121 | ifeq ($(strip $(RGB_MATRIX_SPLIT_RIGHT)), yes) | ||
| 122 | OPT_DEFS += -DRGB_MATRIX_SPLIT_RIGHT | ||
| 84 | endif | 123 | endif |
| 85 | 124 | ||
| 86 | ifeq ($(strip $(Link_Time_Optimization)),yes) | 125 | ifeq ($(strip $(Link_Time_Optimization)),yes) |
| 87 | EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization | 126 | EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization |
| 88 | endif | 127 | endif |
| 89 | 128 | ||
| 90 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 129 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
