diff options
| author | QMK Bot <hello@qmk.fm> | 2021-06-16 04:55:03 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-06-16 04:55:03 +0000 |
| commit | 03f7bec6c865963ab39dc88f1f79ece1f1cc8e34 (patch) | |
| tree | ec03eb09031bc69e1179c17ab2a5961c5cd2baf6 | |
| parent | e2c58934052e2ca93a92cd97ef8b9c0425fa3cf6 (diff) | |
| parent | 311cf865dca25f3d72095d271de5d8acbe4d2150 (diff) | |
| download | qmk_firmware-03f7bec6c865963ab39dc88f1f79ece1f1cc8e34.tar.gz qmk_firmware-03f7bec6c865963ab39dc88f1f79ece1f1cc8e34.zip | |
Merge remote-tracking branch 'origin/master' into develop
3 files changed, 171 insertions, 0 deletions
diff --git a/keyboards/keebio/iris/keymaps/compilation-error/config.h b/keyboards/keebio/iris/keymaps/compilation-error/config.h new file mode 100644 index 000000000..149a54be7 --- /dev/null +++ b/keyboards/keebio/iris/keymaps/compilation-error/config.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@keeb.io> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | // #define USE_I2C | ||
| 21 | #define EE_HANDS | ||
diff --git a/keyboards/keebio/iris/keymaps/compilation-error/keymap.c b/keyboards/keebio/iris/keymaps/compilation-error/keymap.c new file mode 100644 index 000000000..1b3f11460 --- /dev/null +++ b/keyboards/keebio/iris/keymaps/compilation-error/keymap.c | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | /* Copyright 2021 Romeet Chhabra | ||
| 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 | |||
| 20 | enum custom_layers { | ||
| 21 | _QWERTY, | ||
| 22 | _LOWER, | ||
| 23 | _RAISE, | ||
| 24 | _ADJUST, | ||
| 25 | }; | ||
| 26 | |||
| 27 | enum custom_keycodes { | ||
| 28 | QWERTY = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | ADJUST, | ||
| 32 | }; | ||
| 33 | |||
| 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | |||
| 36 | [_QWERTY] = LAYOUT( | ||
| 37 | //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 38 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 39 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 40 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 41 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 42 | LALT_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 43 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 44 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_PSCR, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, | ||
| 45 | //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ | ||
| 46 | KC_LGUI, LOWER, KC_SPC, KC_ENT, RAISE, KC_LCTL | ||
| 47 | // └────────┴────────┴────────┘ └────────┴────────┴────────┘ | ||
| 48 | ), | ||
| 49 | |||
| 50 | [_LOWER] = LAYOUT( | ||
| 51 | //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 52 | RGB_TOG, _______, KC_BTN3, _______, KC_LBRC, KC_RBRC, KC_EQL, KC_P7, KC_P8, KC_P9, KC_PSLS, KC_DEL, | ||
| 53 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 54 | KC_BTN4, KC_BTN1, KC_MS_U, KC_BTN2, KC_LCBR, KC_RCBR, KC_PLUS, KC_P4, KC_P5, KC_P6, KC_PAST, _______, | ||
| 55 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 56 | KC_BTN5, KC_MS_L, KC_MS_D, KC_MS_R, KC_LT, KC_GT, KC_MINS, KC_P1, KC_P2, KC_P3, KC_PMNS, _______, | ||
| 57 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 58 | _______, _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_P0, KC_PDOT, KC_PENT, KC_PPLS, _______, | ||
| 59 | //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ | ||
| 60 | _______, _______, _______, _______, MO(_ADJUST), _______ | ||
| 61 | // └────────┴────────┴────────┘ └────────┴────────┴────────┘ | ||
| 62 | ), | ||
| 63 | |||
| 64 | [_RAISE] = LAYOUT( | ||
| 65 | //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 66 | KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 67 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 68 | _______, _______, _______, _______, _______, _______, KC_LBRC, KC_LCBR, KC_LT, KC_GT, KC_RCBR, KC_RBRC, | ||
| 69 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 70 | _______, _______, _______, _______, _______, _______, KC_PGUP, KC_MINS, KC_UNDS, KC_EQL, KC_PLUS, KC_PGDN, | ||
| 71 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 72 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_END, | ||
| 73 | //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ | ||
| 74 | _______, MO(_ADJUST), _______, _______, _______, _______ | ||
| 75 | // └────────┴────────┴────────┘ └────────┴────────┴────────┘ | ||
| 76 | ), | ||
| 77 | |||
| 78 | [_ADJUST] = LAYOUT( | ||
| 79 | //┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐ | ||
| 80 | KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, | ||
| 81 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 82 | RGB_TOG, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, | ||
| 83 | //├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 84 | RGB_MOD, KC_MPRV, KC_MNXT, KC_VOLU, KC_PGUP, KC_UNDS, KC_EQL, KC_HOME, RGB_HUI, RGB_SAI, RGB_VAI, _______, | ||
| 85 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
| 86 | KC_MUTE, KC_MSTP, KC_MPLY, KC_VOLD, KC_PGDN, KC_MINS, RESET, EEP_RST, KC_PLUS, KC_END, RGB_HUD, RGB_SAD, RGB_VAD, _______, | ||
| 87 | //└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘ | ||
| 88 | _______, _______, _______, _______, _______, _______ | ||
| 89 | // └────────┴────────┴────────┘ └────────┴────────┴────────┘ | ||
| 90 | ) | ||
| 91 | }; | ||
| 92 | |||
| 93 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 94 | switch (keycode) { | ||
| 95 | case QWERTY: | ||
| 96 | if (record->event.pressed) { | ||
| 97 | set_single_persistent_default_layer(_QWERTY); | ||
| 98 | } | ||
| 99 | return false; | ||
| 100 | break; | ||
| 101 | case LOWER: | ||
| 102 | if (record->event.pressed) { | ||
| 103 | layer_on(_LOWER); | ||
| 104 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 105 | } else { | ||
| 106 | layer_off(_LOWER); | ||
| 107 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 108 | } | ||
| 109 | return false; | ||
| 110 | break; | ||
| 111 | case RAISE: | ||
| 112 | if (record->event.pressed) { | ||
| 113 | layer_on(_RAISE); | ||
| 114 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 115 | } else { | ||
| 116 | layer_off(_RAISE); | ||
| 117 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 118 | } | ||
| 119 | return false; | ||
| 120 | break; | ||
| 121 | case ADJUST: | ||
| 122 | if (record->event.pressed) { | ||
| 123 | layer_on(_ADJUST); | ||
| 124 | } else { | ||
| 125 | layer_off(_ADJUST); | ||
| 126 | } | ||
| 127 | return false; | ||
| 128 | break; | ||
| 129 | } | ||
| 130 | return true; | ||
| 131 | } | ||
| 132 | |||
| 133 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 134 | if (index == 0) { | ||
| 135 | if (clockwise) { | ||
| 136 | tap_code(KC_VOLU); | ||
| 137 | } else { | ||
| 138 | tap_code(KC_VOLD); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | else if (index == 1) { | ||
| 142 | if (clockwise) { | ||
| 143 | tap_code(KC_WH_D); | ||
| 144 | } else { | ||
| 145 | tap_code(KC_WH_U); | ||
| 146 | } | ||
| 147 | } | ||
| 148 | return true; | ||
| 149 | } | ||
diff --git a/keyboards/keebio/iris/keymaps/compilation-error/rules.mk b/keyboards/keebio/iris/keymaps/compilation-error/rules.mk new file mode 100644 index 000000000..b0c1afe09 --- /dev/null +++ b/keyboards/keebio/iris/keymaps/compilation-error/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| MOUSEKEY_ENABLE = yes # Mouse keys | |||
