diff options
| author | Toshihiro Suzuki <t.suzuki326@gmail.com> | 2019-10-30 07:41:37 +0900 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-10-29 15:41:37 -0700 |
| commit | d62469013512cf8ffe775ec8aa941f32e1d7c7d3 (patch) | |
| tree | a6afcc9ba67abfca2c220e3d38b161f61ae5a6a2 | |
| parent | f1640165667bd416cd9b0680d4852988df686edc (diff) | |
| download | qmk_firmware-d62469013512cf8ffe775ec8aa941f32e1d7c7d3.tar.gz qmk_firmware-d62469013512cf8ffe775ec8aa941f32e1d7c7d3.zip | |
[Keymap] Add keymaps for myself (#7141)
* [zinc] add toshi0383 qwerty layout
* Add dvorak like keymap
* update keymap
* update keymap
* update
* Add my keymap for reviung39
* cleanup
* fix RESET button position
* add rgb_mod to raise
* Update keyboards/reviung39/keymaps/toshi0383/readme.md
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/zinc/keymaps/toshi0383/keymap.c
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/zinc/keymaps/toshi0383/keymap.c
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* remove unnecessary code
* improve comment
* Update keyboards/reviung39/keymaps/toshi0383/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/zinc/keymaps/toshi0383/keymap.c
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* remove unused function
* cleanup
* refactor using MO
| -rw-r--r-- | keyboards/reviung39/keymaps/toshi0383/config.h | 47 | ||||
| -rw-r--r-- | keyboards/reviung39/keymaps/toshi0383/keymap.c | 57 | ||||
| -rw-r--r-- | keyboards/reviung39/keymaps/toshi0383/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/reviung39/keymaps/toshi0383/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/zinc/keymaps/toshi0383/config.h | 39 | ||||
| -rw-r--r-- | keyboards/zinc/keymaps/toshi0383/keymap.c | 89 | ||||
| -rw-r--r-- | keyboards/zinc/keymaps/toshi0383/rules.mk | 95 |
7 files changed, 331 insertions, 0 deletions
diff --git a/keyboards/reviung39/keymaps/toshi0383/config.h b/keyboards/reviung39/keymaps/toshi0383/config.h new file mode 100644 index 000000000..cd201ebfb --- /dev/null +++ b/keyboards/reviung39/keymaps/toshi0383/config.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* Copyright 2019 gtips | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | // place overrides here | ||
| 20 | |||
| 21 | #define RGB_DI_PIN D3 | ||
| 22 | #ifdef RGB_DI_PIN | ||
| 23 | #define RGBLED_NUM 11 | ||
| 24 | #define RGBLIGHT_HUE_STEP 16 | ||
| 25 | #define RGBLIGHT_SAT_STEP 16 | ||
| 26 | #define RGBLIGHT_VAL_STEP 16 | ||
| 27 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 28 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 29 | // /*== all animations enable ==*/ | ||
| 30 | #define RGBLIGHT_ANIMATIONS | ||
| 31 | // /*== or choose animations ==*/ | ||
| 32 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 33 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 34 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 35 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 36 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 37 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 38 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 39 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 40 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 41 | // /*== customize breathing effect ==*/ | ||
| 42 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 43 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 44 | // /*==== use exp() and sin() ====*/ | ||
| 45 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 46 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 47 | #endif | ||
diff --git a/keyboards/reviung39/keymaps/toshi0383/keymap.c b/keyboards/reviung39/keymaps/toshi0383/keymap.c new file mode 100644 index 000000000..da94181db --- /dev/null +++ b/keyboards/reviung39/keymaps/toshi0383/keymap.c | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2019 gtips | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | enum layer_names { | ||
| 19 | _BASE, | ||
| 20 | _LOWER, | ||
| 21 | _RAISE, | ||
| 22 | _ADJUST | ||
| 23 | }; | ||
| 24 | |||
| 25 | #define LOWER MO(_LOWER) | ||
| 26 | #define RAISE MO(_RAISE) | ||
| 27 | #define ADJUST MO(_ADJUST) | ||
| 28 | |||
| 29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 30 | [_BASE] = LAYOUT_reviung39( | ||
| 31 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPACE, | ||
| 32 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_RGUI, KC_RSFT, | ||
| 33 | KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RCTL, KC_RGUI, KC_RALT, RGUI(KC_RSFT), | ||
| 34 | LOWER, KC_ENT, RAISE | ||
| 35 | ), | ||
| 36 | |||
| 37 | [_LOWER] = LAYOUT_reviung39( | ||
| 38 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, _______, _______, | ||
| 39 | _______, KC_LT, KC_GT, KC_LPRN, KC_RPRN, KC_GRV, KC_MINS, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_PIPE, | ||
| 40 | _______, _______, _______, _______, KC_EQL, KC_QUES, KC_UNDS, KC_PLUS, KC_COMM, KC_DOT, KC_SLSH, _______, | ||
| 41 | _______, KC_ENT, KC_RGUI | ||
| 42 | ), | ||
| 43 | |||
| 44 | [_RAISE] = LAYOUT_reviung39( | ||
| 45 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 46 | _______, KC_COLN, KC_SCLN, KC_DQT, KC_QUOT, KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, ADJUST, _______, _______, _______, _______, _______, | ||
| 48 | KC_LGUI, KC_ENT, _______ | ||
| 49 | ), | ||
| 50 | |||
| 51 | [_ADJUST] = LAYOUT_reviung39( | ||
| 52 | RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, XXXXXXX, RGB_TOG, KC_Y, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 53 | RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 54 | XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, | ||
| 55 | _______, XXXXXXX, _______ | ||
| 56 | ), | ||
| 57 | }; | ||
diff --git a/keyboards/reviung39/keymaps/toshi0383/readme.md b/keyboards/reviung39/keymaps/toshi0383/readme.md new file mode 100644 index 000000000..5a09f2559 --- /dev/null +++ b/keyboards/reviung39/keymaps/toshi0383/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | # toshi0383's keymap for REVIUNG39 | ||
| 2 | |||
| 3 | __REVIUNG39 is regular version__ | ||
diff --git a/keyboards/reviung39/keymaps/toshi0383/rules.mk b/keyboards/reviung39/keymaps/toshi0383/rules.mk new file mode 100644 index 000000000..7ad666d1a --- /dev/null +++ b/keyboards/reviung39/keymaps/toshi0383/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| RGBLIGHT_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/zinc/keymaps/toshi0383/config.h b/keyboards/zinc/keymaps/toshi0383/config.h new file mode 100644 index 000000000..33108a29e --- /dev/null +++ b/keyboards/zinc/keymaps/toshi0383/config.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* | ||
| 2 | This is the c configuration file for the keymap | ||
| 3 | |||
| 4 | Copyright 2019 Toshihiro Suzuki | ||
| 5 | Copyright 2018 monksoffunk | ||
| 6 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 7 | Copyright 2015 Jack Humbert | ||
| 8 | |||
| 9 | This program is free software: you can redistribute it and/or modify | ||
| 10 | it under the terms of the GNU General Public License as published by | ||
| 11 | the Free Software Foundation, either version 2 of the License, or | ||
| 12 | (at your option) any later version. | ||
| 13 | |||
| 14 | This program is distributed in the hope that it will be useful, | ||
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | GNU General Public License for more details. | ||
| 18 | |||
| 19 | You should have received a copy of the GNU General Public License | ||
| 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 21 | */ | ||
| 22 | |||
| 23 | #pragma once | ||
| 24 | // if you need more program area, try uncomment follow line | ||
| 25 | #include "serial_config_simpleapi.h" | ||
| 26 | |||
| 27 | // place overrides here | ||
| 28 | // Selection of RGBLIGHT MODE to use. | ||
| 29 | #if defined(LED_ANIMATIONS) | ||
| 30 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 31 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 32 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 33 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 34 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 35 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 36 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 37 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
| 38 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
| 39 | #endif | ||
diff --git a/keyboards/zinc/keymaps/toshi0383/keymap.c b/keyboards/zinc/keymaps/toshi0383/keymap.c new file mode 100644 index 000000000..d1738c83e --- /dev/null +++ b/keyboards/zinc/keymaps/toshi0383/keymap.c | |||
| @@ -0,0 +1,89 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | extern uint8_t is_master; | ||
| 4 | |||
| 5 | enum layer_names { | ||
| 6 | _BASE, | ||
| 7 | _LOWER, | ||
| 8 | _RAISE, | ||
| 9 | _ADJUST | ||
| 10 | }; | ||
| 11 | |||
| 12 | #define LOWER MO(_LOWER) | ||
| 13 | #define RAISE MO(_RAISE) | ||
| 14 | #define ADJUST MO(_ADJUST) | ||
| 15 | |||
| 16 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { \ | ||
| 17 | /* Qwerty | ||
| 18 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 19 | * | Esc | Q | W | E | R | T | | Y | U | I | O | P |BSpace| | ||
| 20 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 21 | * | Tab | A | S | D | F | G | | H | J | K | L | : |Shift | | ||
| 22 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 23 | * |Space | Z | X | C | V | B | | N | M | Ctrl | GUI | Alt | SCMD | | ||
| 24 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 25 | * | | | | |Lower |Enter | |Enter |Raise | | | | | | ||
| 26 | * `-----------------------------------------' `-----------------------------------------' | ||
| 27 | */ | ||
| 28 | [_BASE] = LAYOUT_ortho_4x12( | ||
| 29 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPACE, \ | ||
| 30 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_RGUI, KC_RSFT, \ | ||
| 31 | KC_SPC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RCTL, KC_RGUI, KC_RALT, RGUI(KC_RSFT), \ | ||
| 32 | _______, _______, _______, _______, LOWER, KC_ENT, KC_ENT, RAISE, _______, _______, _______, _______ \ | ||
| 33 | ), | ||
| 34 | |||
| 35 | /* Lower | ||
| 36 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 37 | * | ~ | ! | @ | # | $ | % | | ^ | & | * | | | | | ||
| 38 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 39 | * | | < | > | ( | ) | ` | | - | { | } | [ | ] | | | | ||
| 40 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 41 | * | | | | | = | ? | | _ | + | , | . | / | | | ||
| 42 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 43 | * | | | | |------| TRSP | | TRSP | GUI | | | | | | ||
| 44 | * `-----------------------------------------' `-----------------------------------------' | ||
| 45 | */ | ||
| 46 | [_LOWER] = LAYOUT_ortho_4x12( \ | ||
| 47 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, _______, _______,\ | ||
| 48 | _______, KC_LT, KC_GT, KC_LPRN, KC_RPRN, KC_GRV, KC_MINS, KC_LCBR, KC_RCBR, KC_LBRC, KC_RBRC, KC_PIPE, \ | ||
| 49 | _______, _______, _______, _______, KC_EQL, KC_QUES, KC_UNDS, KC_PLUS, KC_COMM, KC_DOT, KC_SLSH, _______, \ | ||
| 50 | _______, _______, _______, _______, _______, KC_TRNS, ADJUST, KC_RGUI, _______, _______, _______, _______ \ | ||
| 51 | ), | ||
| 52 | |||
| 53 | /* Raise | ||
| 54 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 55 | * | | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | | ||
| 56 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 57 | * | | : | ; | " | ' | \ | | Left | Down | Up |Right | | | | ||
| 58 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 59 | * | | | | | | | |ADJUST| | | | | | | ||
| 60 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 61 | * | | | | | GUI |Shift | |Shift |------| | | | | | ||
| 62 | * `-----------------------------------------' `-----------------------------------------' | ||
| 63 | */ | ||
| 64 | [_RAISE] = LAYOUT_ortho_4x12( \ | ||
| 65 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, \ | ||
| 66 | _______, KC_COLN, KC_SCLN, KC_DQT, KC_QUOT, KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, \ | ||
| 67 | _______, _______, _______, _______, _______, _______, ADJUST, _______, _______, _______, _______, _______, \ | ||
| 68 | _______, _______, _______, _______, KC_LGUI, KC_LSFT, KC_LSFT, _______, _______, _______, _______, _______ \ | ||
| 69 | ), | ||
| 70 | |||
| 71 | /* Adjust (Lower + Raise) | ||
| 72 | * ,-----------------------------------------. ,-----------------------------------------. | ||
| 73 | * | | | | | | | | | | | | | | | ||
| 74 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 75 | * | | | | | | | | | | | | | | | ||
| 76 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 77 | * | | | | | | | | | | | | | | | ||
| 78 | * |------+------+------+------+------+------| |------+------+------+------+------+------| | ||
| 79 | * | | | | | |RESET | |------| | | | | | | ||
| 80 | * `-----------------------------------------' `-----------------------------------------' | ||
| 81 | */ | ||
| 82 | [_ADJUST] = LAYOUT_ortho_4x12( \ | ||
| 83 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 84 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 85 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 86 | _______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______ \ | ||
| 87 | ), | ||
| 88 | |||
| 89 | }; | ||
diff --git a/keyboards/zinc/keymaps/toshi0383/rules.mk b/keyboards/zinc/keymaps/toshi0383/rules.mk new file mode 100644 index 000000000..dca9aa7ff --- /dev/null +++ b/keyboards/zinc/keymaps/toshi0383/rules.mk | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | # Build Options | ||
| 2 | # change yes to no to disable | ||
| 3 | # | ||
| 4 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 5 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 7 | CONSOLE_ENABLE = no # Console for debug | ||
| 8 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 9 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 10 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 11 | MIDI_ENABLE = no # MIDI controls | ||
| 12 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 13 | UNICODE_ENABLE = no # Unicode | ||
| 14 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 15 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 16 | SWAP_HANDS_ENABLE = no # Enable one-hand typing | ||
| 17 | |||
| 18 | define ZINC_CUSTOMISE_MSG | ||
| 19 | $(info Zinc customize) | ||
| 20 | $(info - LED_BACK_ENABLE=$(LED_BACK_ENABLE)) | ||
| 21 | $(info - LED_UNDERGLOW_ENABLE=$(LED_UNDERGLOW_ENABLE)) | ||
| 22 | $(info - LED_ANIMATION=$(LED_ANIMATIONS)) | ||
| 23 | $(info - IOS_DEVICE_ENABLE=$(IOS_DEVICE_ENABLE)) | ||
| 24 | endef | ||
| 25 | |||
| 26 | # Zinc keyboard customize | ||
| 27 | LED_BACK_ENABLE = no # LED backlight (Enable SK6812mini backlight) | ||
| 28 | LED_UNDERGLOW_ENABLE = no # LED underglow (Enable WS2812 RGB underlight) | ||
| 29 | LED_ANIMATIONS = yes # LED animations | ||
| 30 | IOS_DEVICE_ENABLE = no # connect to IOS device (iPad,iPhone) | ||
| 31 | Link_Time_Optimization = no # if firmware size over limit, try this option | ||
| 32 | |||
| 33 | #### LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE. | ||
| 34 | #### Do not enable these with audio at the same time. | ||
| 35 | |||
| 36 | ### Zinc keyboard 'default' keymap: convenient command line option | ||
| 37 | ## make ZINC=<options> zinc:defualt | ||
| 38 | ## option= back | under | na | ios | ||
| 39 | ## ex. | ||
| 40 | ## make ZINC=under zinc:defualt | ||
| 41 | ## make ZINC=under,ios zinc:defualt | ||
| 42 | ## make ZINC=back zinc:default | ||
| 43 | ## make ZINC=back,na zinc:default | ||
| 44 | ## make ZINC=back,ios zinc:default | ||
| 45 | |||
| 46 | ifneq ($(strip $(ZINC)),) | ||
| 47 | ifeq ($(findstring back,$(ZINC)), back) | ||
| 48 | LED_BACK_ENABLE = yes | ||
| 49 | else ifeq ($(findstring under,$(ZINC)), under) | ||
| 50 | LED_UNDERGLOW_ENABLE = yes | ||
| 51 | endif | ||
| 52 | ifeq ($(findstring na,$(ZINC)), na) | ||
| 53 | LED_ANIMATIONS = no | ||
| 54 | endif | ||
| 55 | ifeq ($(findstring ios,$(ZINC)), ios) | ||
| 56 | IOS_DEVICE_ENABLE = yes | ||
| 57 | endif | ||
| 58 | $(eval $(call ZINC_CUSTOMISE_MSG)) | ||
| 59 | $(info ) | ||
| 60 | endif | ||
| 61 | |||
| 62 | ifeq ($(strip $(LED_BACK_ENABLE)), yes) | ||
| 63 | RGBLIGHT_ENABLE = yes | ||
| 64 | OPT_DEFS += -DRGBLED_BACK | ||
| 65 | ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes) | ||
| 66 | $(eval $(call ZINC_CUSTOMISE_MSG)) | ||
| 67 | $(error LED_BACK_ENABLE and LED_UNDERGLOW_ENABLE both 'yes') | ||
| 68 | endif | ||
| 69 | else ifeq ($(strip $(LED_UNDERGLOW_ENABLE)), yes) | ||
| 70 | RGBLIGHT_ENABLE = yes | ||
| 71 | else | ||
| 72 | RGBLIGHT_ENABLE = no | ||
| 73 | endif | ||
| 74 | |||
| 75 | ifeq ($(strip $(IOS_DEVICE_ENABLE)), yes) | ||
| 76 | OPT_DEFS += -DIOS_DEVICE_ENABLE | ||
| 77 | endif | ||
| 78 | |||
| 79 | ifeq ($(strip $(LED_ANIMATIONS)), yes) | ||
| 80 | # OPT_DEFS += -DRGBLIGHT_ANIMATIONS | ||
| 81 | OPT_DEFS += -DLED_ANIMATIONS | ||
| 82 | endif | ||
| 83 | |||
| 84 | ifeq ($(strip $(Link_Time_Optimization)),yes) | ||
| 85 | EXTRAFLAGS += -flto -DUSE_Link_Time_Optimization | ||
| 86 | endif | ||
| 87 | |||
| 88 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 89 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 90 | |||
| 91 | # Uncomment these for debugging | ||
| 92 | # $(info -- RGBLIGHT_ENABLE=$(RGBLIGHT_ENABLE)) | ||
| 93 | # $(info -- OPT_DEFS=$(OPT_DEFS)) | ||
| 94 | # $(info ) | ||
| 95 | |||
