diff options
Diffstat (limited to 'keyboards/launchpad/keymaps/drashna/keymap.c')
| -rw-r--r-- | keyboards/launchpad/keymaps/drashna/keymap.c | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/keyboards/launchpad/keymaps/drashna/keymap.c b/keyboards/launchpad/keymaps/drashna/keymap.c new file mode 100644 index 000000000..f8e4d1a41 --- /dev/null +++ b/keyboards/launchpad/keymaps/drashna/keymap.c | |||
| @@ -0,0 +1,107 @@ | |||
| 1 | /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum local_layers { | ||
| 20 | _QWERTY, | ||
| 21 | _RGB, | ||
| 22 | _FUNC, | ||
| 23 | }; | ||
| 24 | |||
| 25 | // Defines for task manager and such | ||
| 26 | #define CALTDEL LCTL(LALT(KC_DEL)) | ||
| 27 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
| 28 | |||
| 29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 30 | |||
| 31 | /* Qwerty | ||
| 32 | * ,-------------. | ||
| 33 | * | 1 | 2 | | ||
| 34 | * |------+------| | ||
| 35 | * | 3 | 4 | | ||
| 36 | * |------+------| | ||
| 37 | * | 5 | 6 | | ||
| 38 | * |------+------| | ||
| 39 | * | FUNC | RGB | | ||
| 40 | * `-------------' | ||
| 41 | */ | ||
| 42 | [_QWERTY] = LAYOUT( \ | ||
| 43 | KC_1, KC_2, \ | ||
| 44 | KC_3, KC_4, \ | ||
| 45 | KC_5, KC_6, \ | ||
| 46 | MO(_FUNC), TG(_RGB) \ | ||
| 47 | ), | ||
| 48 | |||
| 49 | /* RGB | ||
| 50 | * ,-------------. | ||
| 51 | * | Mode-| Mode+| | ||
| 52 | * |------+------| | ||
| 53 | * | HUE- | HUE+ | | ||
| 54 | * |------+------| | ||
| 55 | * | SAT- | SAT+ | | ||
| 56 | * |------+------| | ||
| 57 | * |RGBTOG| | | ||
| 58 | * `-------------' | ||
| 59 | */ | ||
| 60 | [_RGB] = LAYOUT( \ | ||
| 61 | RGB_RMOD, RGB_MOD, \ | ||
| 62 | RGB_HUD, RGB_HUI, \ | ||
| 63 | RGB_SAD, RGB_SAI, \ | ||
| 64 | RGB_TOG, KC_TRNS \ | ||
| 65 | ), | ||
| 66 | |||
| 67 | /* Function | ||
| 68 | * ,-------------. | ||
| 69 | * | Q |CALDEL| | ||
| 70 | * |------+------| | ||
| 71 | * | A |TSKMGR| | ||
| 72 | * |------+------| | ||
| 73 | * | Z | X | | ||
| 74 | * |------+------| | ||
| 75 | * | | C | | ||
| 76 | * `-------------' | ||
| 77 | */ | ||
| 78 | [_FUNC] = LAYOUT( \ | ||
| 79 | KC_Q, CALTDEL, \ | ||
| 80 | KC_A, TSKMGR, \ | ||
| 81 | KC_Z, KC_X, \ | ||
| 82 | _______, RESET \ | ||
| 83 | ) | ||
| 84 | |||
| 85 | }; | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | |||
| 90 | #ifdef RGB_MATRIX_ENABLE | ||
| 91 | led_config_t g_led_config = { | ||
| 92 | { | ||
| 93 | { 7, 0 }, | ||
| 94 | { 6, 1 }, | ||
| 95 | { 5, 2 }, | ||
| 96 | { 4, 3 }, | ||
| 97 | },{ | ||
| 98 | { 121, 2 }, { 121, 23 }, | ||
| 99 | { 121, 41 }, { 121, 60 }, | ||
| 100 | { 103, 2 }, { 103, 23 }, | ||
| 101 | { 103, 41 }, { 103, 60 }, | ||
| 102 | },{ | ||
| 103 | 1, 1, 1, 1, | ||
| 104 | 1, 1, 1, 1, | ||
| 105 | } | ||
| 106 | }; | ||
| 107 | #endif | ||
