diff options
| author | Reibl János Dániel <jani.reibl3@gmail.com> | 2020-09-22 20:39:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-22 11:39:07 -0700 |
| commit | 7a3a57e457aa28afa62448deca838a2582e86587 (patch) | |
| tree | 0d71a226b520cec5deccb2a973d0cc72dda7bed7 | |
| parent | 0fbb1e550a1c65fcc07b206aec449811e71642ff (diff) | |
| download | qmk_firmware-7a3a57e457aa28afa62448deca838a2582e86587.tar.gz qmk_firmware-7a3a57e457aa28afa62448deca838a2582e86587.zip | |
Updates to handwired/riblee_f401 keymaps (#10376)
* Add new keymap with Hungarian accent support
Add flashing support
* Remove unnecessary mcu config
* Use bootmagic instead of custom macros
6 files changed, 450 insertions, 23 deletions
diff --git a/keyboards/handwired/riblee_f401/config.h b/keyboards/handwired/riblee_f401/config.h index d8e7e7d62..6e5c07979 100644 --- a/keyboards/handwired/riblee_f401/config.h +++ b/keyboards/handwired/riblee_f401/config.h | |||
| @@ -27,10 +27,6 @@ | |||
| 27 | #define MATRIX_ROWS 5 | 27 | #define MATRIX_ROWS 5 |
| 28 | #define MATRIX_COLS 12 | 28 | #define MATRIX_COLS 12 |
| 29 | 29 | ||
| 30 | // Testing with onekey | ||
| 31 | // #define MATRIX_ROW_PINS { A7 } | ||
| 32 | // #define MATRIX_COL_PINS { B0 } | ||
| 33 | |||
| 34 | #define MATRIX_ROW_PINS { A6, A5, A4, A3, A2 } | 30 | #define MATRIX_ROW_PINS { A6, A5, A4, A3, A2 } |
| 35 | #define MATRIX_COL_PINS { B10, B1, B0, B15, A8, B3, B4, B5, B6, B7, B8, B9 } | 31 | #define MATRIX_COL_PINS { B10, B1, B0, B15, A8, B3, B4, B5, B6, B7, B8, B9 } |
| 36 | #define UNUSED_PINS | 32 | #define UNUSED_PINS |
| @@ -39,3 +35,7 @@ | |||
| 39 | 35 | ||
| 40 | #define BACKLIGHT_PIN A0 | 36 | #define BACKLIGHT_PIN A0 |
| 41 | #define BACKLIGHT_LEVELS 5 | 37 | #define BACKLIGHT_LEVELS 5 |
| 38 | |||
| 39 | #define MOUSEKEY_INTERVAL 32 | ||
| 40 | |||
| 41 | #define TAPPING_TERM 175 \ No newline at end of file | ||
diff --git a/keyboards/handwired/riblee_f401/keymaps/default/keymap.c b/keyboards/handwired/riblee_f401/keymaps/default/keymap.c index 40f64e189..4bb18634e 100644 --- a/keyboards/handwired/riblee_f401/keymaps/default/keymap.c +++ b/keyboards/handwired/riblee_f401/keymaps/default/keymap.c | |||
| @@ -40,7 +40,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 40 | 40 | ||
| 41 | /* Qwerty | 41 | /* Qwerty |
| 42 | * ,-----------------------------------------------------------------------------------. | 42 | * ,-----------------------------------------------------------------------------------. |
| 43 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | | 43 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | |
| 44 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 44 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| 45 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | | 45 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | |
| 46 | * |------+------+------+------+------+-------------+------+------+------+------+------| | 46 | * |------+------+------+------+------+-------------+------+------+------+------+------| |
| @@ -48,15 +48,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 48 | * |------+------+------+------+------+------|------+------+------+------+------+------| | 48 | * |------+------+------+------+------+------|------+------+------+------+------+------| |
| 49 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | 49 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | |
| 50 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 50 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| 51 | * | Brite| Ctrl | Alt | GUI |Lower | Bksp |Space |Raise | Left | Down | Up |Right | | 51 | * | Brite| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right | |
| 52 | * `-----------------------------------------------------------------------------------' | 52 | * `-----------------------------------------------------------------------------------' |
| 53 | */ | 53 | */ |
| 54 | [_QWERTY] = LAYOUT_ortho_5x12( | 54 | [_QWERTY] = LAYOUT_ortho_5x12( |
| 55 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | 55 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, |
| 56 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | 56 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, |
| 57 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | 57 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, |
| 58 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | 58 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, |
| 59 | BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_BSPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | 59 | BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT |
| 60 | ), | 60 | ), |
| 61 | 61 | ||
| 62 | /* Colemak | 62 | /* Colemak |
| @@ -111,7 +111,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 111 | * |------+------+------+------+------+------|------+------+------+------+------+------| | 111 | * |------+------+------+------+------+------|------+------+------+------+------+------| |
| 112 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | 112 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | |
| 113 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 113 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| 114 | * | | | | | | | | Next | Vol- | Vol+ | Play | | 114 | * | | | | | | BTN1 | BTN2 | | MS_L | MS_D | MS_U | MS_R | |
| 115 | * `-----------------------------------------------------------------------------------' | 115 | * `-----------------------------------------------------------------------------------' |
| 116 | */ | 116 | */ |
| 117 | [_LOWER] = LAYOUT_ortho_5x12( | 117 | [_LOWER] = LAYOUT_ortho_5x12( |
| @@ -119,7 +119,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 119 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | 119 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, |
| 120 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | 120 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, |
| 121 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | 121 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, |
| 122 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | 122 | _______, _______, _______, _______, _______, KC_BTN1, KC_BTN2, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R |
| 123 | ), | 123 | ), |
| 124 | 124 | ||
| 125 | /* Raise | 125 | /* Raise |
| @@ -147,24 +147,23 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 147 | * ,-----------------------------------------------------------------------------------. | 147 | * ,-----------------------------------------------------------------------------------. |
| 148 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | 148 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | |
| 149 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 149 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| 150 | * | | Reset| | | | | | | | | | Del | | 150 | * | |Reset |Debug | | | | | | | | | Del | |
| 151 | * |------+------+------+------+------+-------------+------+------+------+------+------| | 151 | * |------+------+------+------+------+-------------+------+------+------+------+------| |
| 152 | * | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | 152 | * | | |Mu mod|Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | |
| 153 | * |------+------+------+------+------+------|------+------+------+------+------+------| | 153 | * |------+------+------+------+------+------|------+------+------+------+------+------| |
| 154 | * | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | | 154 | * | | | | | | | NKRO | Swap |Un swp| | | | |
| 155 | * |------+------+------+------+------+------+------+------+------+------+------+------| | 155 | * |------+------+------+------+------+------+------+------+------+------+------+------| |
| 156 | * | | | | | | | | | | | | | 156 | * | | | | | | | | | | | | |
| 157 | * `-----------------------------------------------------------------------------------' | 157 | * `-----------------------------------------------------------------------------------' |
| 158 | */ | 158 | */ |
| 159 | [_ADJUST] = LAYOUT_ortho_5x12( | 159 | [_ADJUST] = LAYOUT_ortho_5x12( |
| 160 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | 160 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, |
| 161 | _______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, | 161 | _______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, |
| 162 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, | 162 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, |
| 163 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, | 163 | _______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, _______, _______, _______, |
| 164 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 164 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 165 | ) | 165 | ) |
| 166 | 166 | ||
| 167 | |||
| 168 | }; | 167 | }; |
| 169 | 168 | ||
| 170 | layer_state_t layer_state_set_user(layer_state_t state) { | 169 | layer_state_t layer_state_set_user(layer_state_t state) { |
| @@ -193,12 +192,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 193 | break; | 192 | break; |
| 194 | case BACKLIT: | 193 | case BACKLIT: |
| 195 | if (record->event.pressed) { | 194 | if (record->event.pressed) { |
| 196 | register_code(KC_RSFT); | 195 | register_code(keycode_config(KC_LGUI)); |
| 197 | #ifdef BACKLIGHT_ENABLE | 196 | #ifdef BACKLIGHT_ENABLE |
| 198 | backlight_step(); | 197 | backlight_step(); |
| 199 | #endif | 198 | #endif |
| 200 | } else { | 199 | } else { |
| 201 | unregister_code(KC_RSFT); | 200 | unregister_code(keycode_config(KC_LGUI)); |
| 202 | } | 201 | } |
| 203 | return false; | 202 | return false; |
| 204 | break; | 203 | break; |
diff --git a/keyboards/handwired/riblee_f401/keymaps/riblee/keymap.c b/keyboards/handwired/riblee_f401/keymaps/riblee/keymap.c new file mode 100644 index 000000000..33319542a --- /dev/null +++ b/keyboards/handwired/riblee_f401/keymaps/riblee/keymap.c | |||
| @@ -0,0 +1,341 @@ | |||
| 1 | /* Copyright 2015-2017 Jack Humbert | ||
| 2 | * Copyright 2020 Daniel Reibl <janos.daniel.reibl@protonmail.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 19 | |||
| 20 | enum preonic_layers { | ||
| 21 | _QWERTY, | ||
| 22 | _COLEMAK, | ||
| 23 | _DVORAK, | ||
| 24 | _LOWER, | ||
| 25 | _RAISE, | ||
| 26 | _ADJUST | ||
| 27 | }; | ||
| 28 | |||
| 29 | enum preonic_keycodes { | ||
| 30 | QWERTY = SAFE_RANGE, | ||
| 31 | COLEMAK, | ||
| 32 | DVORAK, | ||
| 33 | BACKLIT | ||
| 34 | }; | ||
| 35 | |||
| 36 | #define LOWER MO(_LOWER) | ||
| 37 | #define RAISE MO(_RAISE) | ||
| 38 | |||
| 39 | // Tap Dance declarations | ||
| 40 | enum { | ||
| 41 | TD_A, | ||
| 42 | TD_E, | ||
| 43 | TD_I, | ||
| 44 | TD_O, | ||
| 45 | TD_U, | ||
| 46 | }; | ||
| 47 | |||
| 48 | const uint8_t shift = MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT); | ||
| 49 | |||
| 50 | // Tap Dance functions | ||
| 51 | void dance_key_a (qk_tap_dance_state_t *state, void *user_data) { | ||
| 52 | if (state->count == 1) { | ||
| 53 | SEND_STRING("a"); | ||
| 54 | reset_tap_dance(state); | ||
| 55 | } else if (state->count == 2) { | ||
| 56 | if (!(keyboard_report->mods & shift)) { | ||
| 57 | send_unicode_string("á"); | ||
| 58 | } else { | ||
| 59 | send_unicode_string("Á"); | ||
| 60 | } | ||
| 61 | |||
| 62 | reset_tap_dance(state); | ||
| 63 | } | ||
| 64 | } | ||
| 65 | |||
| 66 | void dance_key_e (qk_tap_dance_state_t *state, void *user_data) { | ||
| 67 | if (state->count == 1) { | ||
| 68 | SEND_STRING("e"); | ||
| 69 | reset_tap_dance(state); | ||
| 70 | } else if (state->count == 2) { | ||
| 71 | if (!(keyboard_report->mods & shift)) { | ||
| 72 | send_unicode_string("é"); | ||
| 73 | } else { | ||
| 74 | send_unicode_string("É"); | ||
| 75 | } | ||
| 76 | |||
| 77 | reset_tap_dance(state); | ||
| 78 | } | ||
| 79 | } | ||
| 80 | |||
| 81 | void dance_key_i (qk_tap_dance_state_t *state, void *user_data) { | ||
| 82 | if (state->count == 1) { | ||
| 83 | SEND_STRING("i"); | ||
| 84 | reset_tap_dance(state); | ||
| 85 | } else if (state->count == 2) { | ||
| 86 | if (!(keyboard_report->mods & shift)) { | ||
| 87 | send_unicode_string("í"); | ||
| 88 | } else { | ||
| 89 | send_unicode_string("Í"); | ||
| 90 | } | ||
| 91 | |||
| 92 | reset_tap_dance(state); | ||
| 93 | } | ||
| 94 | } | ||
| 95 | |||
| 96 | void dance_key_o (qk_tap_dance_state_t *state, void *user_data) { | ||
| 97 | if (state->count == 1) { | ||
| 98 | SEND_STRING("o"); | ||
| 99 | reset_tap_dance(state); | ||
| 100 | } else if (state->count == 2) { | ||
| 101 | if (!(keyboard_report->mods & shift)) { | ||
| 102 | send_unicode_string("ó"); | ||
| 103 | } else { | ||
| 104 | send_unicode_string("Ó"); | ||
| 105 | } | ||
| 106 | |||
| 107 | reset_tap_dance(state); | ||
| 108 | } else if (state->count == 3) { | ||
| 109 | if (!(keyboard_report->mods & shift)) { | ||
| 110 | send_unicode_string("ö"); | ||
| 111 | } else { | ||
| 112 | send_unicode_string("Ö"); | ||
| 113 | } | ||
| 114 | |||
| 115 | reset_tap_dance(state); | ||
| 116 | } else if (state->count == 4) { | ||
| 117 | if (!(keyboard_report->mods & shift)) { | ||
| 118 | send_unicode_string("ő"); | ||
| 119 | } else { | ||
| 120 | send_unicode_string("Ő"); | ||
| 121 | } | ||
| 122 | |||
| 123 | reset_tap_dance(state); | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | void dance_key_u (qk_tap_dance_state_t *state, void *user_data) { | ||
| 128 | if (state->count == 1) { | ||
| 129 | SEND_STRING("u"); | ||
| 130 | reset_tap_dance(state); | ||
| 131 | } else if (state->count == 2) { | ||
| 132 | if (!(keyboard_report->mods & shift)) { | ||
| 133 | send_unicode_string("ú"); | ||
| 134 | } else { | ||
| 135 | send_unicode_string("Ú"); | ||
| 136 | } | ||
| 137 | |||
| 138 | reset_tap_dance(state); | ||
| 139 | } else if (state->count == 3) { | ||
| 140 | if (!(keyboard_report->mods & shift)) { | ||
| 141 | send_unicode_string("ü"); | ||
| 142 | } else { | ||
| 143 | send_unicode_string("Ü"); | ||
| 144 | } | ||
| 145 | |||
| 146 | reset_tap_dance(state); | ||
| 147 | } else if (state->count == 4) { | ||
| 148 | if (!(keyboard_report->mods & shift)) { | ||
| 149 | send_unicode_string("ű"); | ||
| 150 | } else { | ||
| 151 | send_unicode_string("Ű"); | ||
| 152 | } | ||
| 153 | |||
| 154 | reset_tap_dance(state); | ||
| 155 | } | ||
| 156 | } | ||
| 157 | |||
| 158 | // Tap Dance definitions | ||
| 159 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 160 | [TD_A] = ACTION_TAP_DANCE_FN(dance_key_a), | ||
| 161 | [TD_E] = ACTION_TAP_DANCE_FN(dance_key_e), | ||
| 162 | [TD_I] = ACTION_TAP_DANCE_FN(dance_key_i), | ||
| 163 | [TD_O] = ACTION_TAP_DANCE_FN(dance_key_o), | ||
| 164 | [TD_U] = ACTION_TAP_DANCE_FN(dance_key_u), | ||
| 165 | }; | ||
| 166 | |||
| 167 | // Tap Dance keys | ||
| 168 | #define C_KC_A TD(TD_A) | ||
| 169 | #define C_KC_E TD(TD_E) | ||
| 170 | #define C_KC_I TD(TD_I) | ||
| 171 | #define C_KC_O TD(TD_O) | ||
| 172 | #define C_KC_U TD(TD_U) | ||
| 173 | |||
| 174 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 175 | |||
| 176 | /* Qwerty | ||
| 177 | * ,-----------------------------------------------------------------------------------. | ||
| 178 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 179 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 180 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | | ||
| 181 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 182 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 183 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 184 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 185 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 186 | * | Brite| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right | | ||
| 187 | * `-----------------------------------------------------------------------------------' | ||
| 188 | */ | ||
| 189 | [_QWERTY] = LAYOUT_ortho_5x12( | ||
| 190 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 191 | KC_TAB, KC_Q, KC_W, C_KC_E, KC_R, KC_T, KC_Y, C_KC_U, C_KC_I, C_KC_O, KC_P, KC_DEL, | ||
| 192 | KC_ESC, C_KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 193 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 194 | BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 195 | ), | ||
| 196 | |||
| 197 | /* Colemak | ||
| 198 | * ,-----------------------------------------------------------------------------------. | ||
| 199 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 200 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 201 | * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Del | | ||
| 202 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 203 | * | Esc | A | R | S | T | D | H | N | E | I | O | " | | ||
| 204 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 205 | * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter | | ||
| 206 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 207 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 208 | * `-----------------------------------------------------------------------------------' | ||
| 209 | */ | ||
| 210 | [_COLEMAK] = LAYOUT_ortho_5x12( | ||
| 211 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 212 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, | ||
| 213 | KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, | ||
| 214 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 215 | BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 216 | ), | ||
| 217 | |||
| 218 | /* Dvorak | ||
| 219 | * ,-----------------------------------------------------------------------------------. | ||
| 220 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 221 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 222 | * | Tab | " | , | . | P | Y | F | G | C | R | L | Del | | ||
| 223 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 224 | * | Esc | A | O | E | U | I | D | H | T | N | S | / | | ||
| 225 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 226 | * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter | | ||
| 227 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 228 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 229 | * `-----------------------------------------------------------------------------------' | ||
| 230 | */ | ||
| 231 | [_DVORAK] = LAYOUT_ortho_5x12( | ||
| 232 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 233 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, | ||
| 234 | KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, | ||
| 235 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT, | ||
| 236 | BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 237 | ), | ||
| 238 | |||
| 239 | /* Lower | ||
| 240 | * ,-----------------------------------------------------------------------------------. | ||
| 241 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 242 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 243 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 244 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 245 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 246 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 247 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
| 248 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 249 | * | | | | | | BTN1 | BTN2 | | MS_L | MS_D | MS_U | MS_R | | ||
| 250 | * `-----------------------------------------------------------------------------------' | ||
| 251 | */ | ||
| 252 | [_LOWER] = LAYOUT_ortho_5x12( | ||
| 253 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 254 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 255 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 256 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
| 257 | _______, _______, _______, _______, _______, KC_BTN1, KC_BTN2, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R | ||
| 258 | ), | ||
| 259 | |||
| 260 | /* Raise | ||
| 261 | * ,-----------------------------------------------------------------------------------. | ||
| 262 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | | ||
| 263 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 264 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 265 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 266 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 267 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 268 | * | Shift| F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | | | ||
| 269 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 270 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 271 | * `-----------------------------------------------------------------------------------' | ||
| 272 | */ | ||
| 273 | [_RAISE] = LAYOUT_ortho_5x12( | ||
| 274 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | ||
| 275 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 276 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 277 | KC_LSFT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 278 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 279 | ), | ||
| 280 | |||
| 281 | /* Adjust (Lower + Raise) | ||
| 282 | * ,-----------------------------------------------------------------------------------. | ||
| 283 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 284 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 285 | * | |Reset |Debug | | | | | | | | | Del | | ||
| 286 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 287 | * | | |Mu mod|Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 288 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 289 | * | | | | | | | NKRO | Swap |Un swp| | | | | ||
| 290 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 291 | * | | | | | | | | | | | | | ||
| 292 | * `-----------------------------------------------------------------------------------' | ||
| 293 | */ | ||
| 294 | [_ADJUST] = LAYOUT_ortho_5x12( | ||
| 295 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 296 | _______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL, | ||
| 297 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, | ||
| 298 | _______, _______, _______, _______, _______, _______, NK_TOGG, LCG_SWP, LCG_NRM, _______, _______, _______, | ||
| 299 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 300 | ) | ||
| 301 | |||
| 302 | }; | ||
| 303 | |||
| 304 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 305 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
| 306 | } | ||
| 307 | |||
| 308 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 309 | switch (keycode) { | ||
| 310 | case QWERTY: | ||
| 311 | if (record->event.pressed) { | ||
| 312 | set_single_persistent_default_layer(_QWERTY); | ||
| 313 | } | ||
| 314 | return false; | ||
| 315 | break; | ||
| 316 | case COLEMAK: | ||
| 317 | if (record->event.pressed) { | ||
| 318 | set_single_persistent_default_layer(_COLEMAK); | ||
| 319 | } | ||
| 320 | return false; | ||
| 321 | break; | ||
| 322 | case DVORAK: | ||
| 323 | if (record->event.pressed) { | ||
| 324 | set_single_persistent_default_layer(_DVORAK); | ||
| 325 | } | ||
| 326 | return false; | ||
| 327 | break; | ||
| 328 | case BACKLIT: | ||
| 329 | if (record->event.pressed) { | ||
| 330 | register_code(keycode_config(KC_LGUI)); | ||
| 331 | #ifdef BACKLIGHT_ENABLE | ||
| 332 | backlight_step(); | ||
| 333 | #endif | ||
| 334 | } else { | ||
| 335 | unregister_code(keycode_config(KC_LGUI)); | ||
| 336 | } | ||
| 337 | return false; | ||
| 338 | break; | ||
| 339 | } | ||
| 340 | return true; | ||
| 341 | }; | ||
diff --git a/keyboards/handwired/riblee_f401/keymaps/riblee/readme.md b/keyboards/handwired/riblee_f401/keymaps/riblee/readme.md new file mode 100644 index 000000000..1045c9881 --- /dev/null +++ b/keyboards/handwired/riblee_f401/keymaps/riblee/readme.md | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | # Riblee preonic | ||
| 2 | |||
| 3 | This layout is modified to support accent Hungarian keys via Unicode and Tap Dance | ||
| 4 | |||
| 5 | ``` | ||
| 6 | |||
| 7 | Qwerty | ||
| 8 | ,-----------------------------------------------------------------------------------. | ||
| 9 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 10 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 11 | | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | | ||
| 12 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 13 | | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 14 | |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 15 | | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 16 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 17 | | Brite| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right | | ||
| 18 | `-----------------------------------------------------------------------------------' | ||
| 19 | |||
| 20 | Colemak | ||
| 21 | ,-----------------------------------------------------------------------------------. | ||
| 22 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 23 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 24 | | Tab | Q | W | F | P | G | J | L | U | Y | ; | Del | | ||
| 25 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 26 | | Esc | A | R | S | T | D | H | N | E | I | O | " | | ||
| 27 | |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 28 | | Shift| Z | X | C | V | B | K | M | , | . | / |Enter | | ||
| 29 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 30 | | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 31 | `-----------------------------------------------------------------------------------' | ||
| 32 | |||
| 33 | Dvorak | ||
| 34 | ,-----------------------------------------------------------------------------------. | ||
| 35 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 36 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 37 | | Tab | " | , | . | P | Y | F | G | C | R | L | Del | | ||
| 38 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 39 | | Esc | A | O | E | U | I | D | H | T | N | S | / | | ||
| 40 | |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 41 | | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter | | ||
| 42 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 43 | | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 44 | `-----------------------------------------------------------------------------------' | ||
| 45 | |||
| 46 | Lower | ||
| 47 | ,-----------------------------------------------------------------------------------. | ||
| 48 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 49 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 50 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 51 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 52 | | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 53 | |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 54 | | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
| 55 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 56 | | | | | | | BTN1 | BTN2 | | MS_L | MS_D | MS_U | MS_R | | ||
| 57 | `-----------------------------------------------------------------------------------' | ||
| 58 | |||
| 59 | Raise | ||
| 60 | ,-----------------------------------------------------------------------------------. | ||
| 61 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | | ||
| 62 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 63 | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 64 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 65 | | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 66 | |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 67 | | Shift| F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | | | ||
| 68 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 69 | | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 70 | `-----------------------------------------------------------------------------------' | ||
| 71 | |||
| 72 | Adjust (Lower + Raise) | ||
| 73 | ,-----------------------------------------------------------------------------------. | ||
| 74 | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 75 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 76 | | |Reset |Debug | | | | | | | | | Del | | ||
| 77 | |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 78 | | | |Mu mod|Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 79 | |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 80 | | | | | | | | NKRO | Swap |Un swp| | | | | ||
| 81 | |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 82 | | | | | | | | | | | | | | ||
| 83 | `-----------------------------------------------------------------------------------' | ||
| 84 | |||
| 85 | ``` \ No newline at end of file | ||
diff --git a/keyboards/handwired/riblee_f401/keymaps/riblee/rules.mk b/keyboards/handwired/riblee_f401/keymaps/riblee/rules.mk new file mode 100644 index 000000000..517f2700e --- /dev/null +++ b/keyboards/handwired/riblee_f401/keymaps/riblee/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | UNICODE_ENABLE = yes | ||
| 2 | TAP_DANCE_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/handwired/riblee_f401/rules.mk b/keyboards/handwired/riblee_f401/rules.mk index 2cb1d380e..bd4592d50 100644 --- a/keyboards/handwired/riblee_f401/rules.mk +++ b/keyboards/handwired/riblee_f401/rules.mk | |||
| @@ -7,7 +7,7 @@ STM32_BOOTLOADER_ADDRESS = 0x1FFF0000 | |||
| 7 | # Build Options | 7 | # Build Options |
| 8 | # change yes to no to disable | 8 | # change yes to no to disable |
| 9 | # | 9 | # |
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | 10 | BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration |
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | 11 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | 12 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 13 | KEYBOARD_SHARED_EP = yes | 13 | KEYBOARD_SHARED_EP = yes |
| @@ -16,7 +16,7 @@ COMMAND_ENABLE = no # Commands for debug and configuration | |||
| 16 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 16 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 18 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 18 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| 19 | NKRO_ENABLE = no # USB Nkey Rollover | 19 | NKRO_ENABLE = yes # USB Nkey Rollover |
| 20 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | 20 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 21 | BACKLIGHT_DRIVER = software | 21 | BACKLIGHT_DRIVER = software |
| 22 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 22 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
