diff options
Diffstat (limited to 'keyboards/lets_split')
| -rw-r--r-- | keyboards/lets_split/keymaps/heartrobotninja/config.h | 58 | ||||
| -rw-r--r-- | keyboards/lets_split/keymaps/heartrobotninja/keymap.c | 183 | ||||
| -rw-r--r-- | keyboards/lets_split/keymaps/heartrobotninja/rules.mk | 26 |
3 files changed, 267 insertions, 0 deletions
diff --git a/keyboards/lets_split/keymaps/heartrobotninja/config.h b/keyboards/lets_split/keymaps/heartrobotninja/config.h new file mode 100644 index 000000000..bb3556e57 --- /dev/null +++ b/keyboards/lets_split/keymaps/heartrobotninja/config.h | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* | ||
| 2 | This is the c configuration file for the keymap | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | |||
| 7 | This program is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 2 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | This program is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | */ | ||
| 20 | |||
| 21 | #ifndef CONFIG_USER_H | ||
| 22 | #define CONFIG_USER_H | ||
| 23 | |||
| 24 | #include "../../config.h" | ||
| 25 | |||
| 26 | /* Use I2C or Serial, not both */ | ||
| 27 | |||
| 28 | #define USE_SERIAL | ||
| 29 | |||
| 30 | /* Select hand configuration */ | ||
| 31 | |||
| 32 | // #define MASTER_LEFT | ||
| 33 | // #define MASTER_RIGHT | ||
| 34 | #define EE_HANDS | ||
| 35 | |||
| 36 | #define ONESHOT_TAP_TOGGLE 2 | ||
| 37 | #define ONESHOT_TIMEOUT 1000 | ||
| 38 | |||
| 39 | #undef LEADER_TIMEOUT | ||
| 40 | #define LEADER_TIMEOUT 1000 | ||
| 41 | |||
| 42 | #undef TAPPING_TERM | ||
| 43 | #define TAPPING_TERM 200 | ||
| 44 | |||
| 45 | #undef TAPPING_TOGGLE | ||
| 46 | #define TAPPING_TOGGLE 2 | ||
| 47 | |||
| 48 | #ifdef SUBPROJECT_rev1 | ||
| 49 | #include "../../rev1/config.h" | ||
| 50 | #endif | ||
| 51 | #ifdef SUBPROJECT_rev2 | ||
| 52 | #include "../../rev2/config.h" | ||
| 53 | #endif | ||
| 54 | #ifdef SUBPROJECT_rev2fliphalf | ||
| 55 | #include "../../rev2fliphalf/config.h" | ||
| 56 | #endif | ||
| 57 | |||
| 58 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/keymaps/heartrobotninja/keymap.c b/keyboards/lets_split/keymaps/heartrobotninja/keymap.c new file mode 100644 index 000000000..aa28ebe92 --- /dev/null +++ b/keyboards/lets_split/keymaps/heartrobotninja/keymap.c | |||
| @@ -0,0 +1,183 @@ | |||
| 1 | #include "lets_split.h" | ||
| 2 | #include "action_layer.h" | ||
| 3 | #include "action_util.h" | ||
| 4 | #include "debug.h" | ||
| 5 | #include "eeconfig.h" | ||
| 6 | |||
| 7 | extern keymap_config_t keymap_config; | ||
| 8 | |||
| 9 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 10 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 11 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 12 | // entirely and just use numbers. | ||
| 13 | #define _COLE 0 | ||
| 14 | #define _LOWER 1 | ||
| 15 | #define _RAISE 2 | ||
| 16 | #define _AUX 16 | ||
| 17 | |||
| 18 | /* Layers */ | ||
| 19 | enum | ||
| 20 | { | ||
| 21 | COLE = 0, | ||
| 22 | LOWER, // right hand 10 key. | ||
| 23 | RAISE, // left hand Fn, right hand symbols. | ||
| 24 | AUX, | ||
| 25 | }; | ||
| 26 | |||
| 27 | /* Tap Dancery */ | ||
| 28 | enum | ||
| 29 | { | ||
| 30 | TD_BTK, | ||
| 31 | TD_TDE, | ||
| 32 | TD_LPRN, | ||
| 33 | TD_RPRN, | ||
| 34 | TD_MIN, | ||
| 35 | TD_USC, | ||
| 36 | }; | ||
| 37 | |||
| 38 | bool time_travel = false; | ||
| 39 | |||
| 40 | // Fillers to make layering more clear | ||
| 41 | #define ____ KC_TRNS | ||
| 42 | |||
| 43 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 44 | |||
| 45 | /* Colemak | ||
| 46 | * ,-----------------------------------------------------------------------------------. | ||
| 47 | * | ' " `| Q | W | F | P | G | J | L | U | Y | = + | ~ ; :| | ||
| 48 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 49 | * | ( [ {| A | R | S | T | D | H | N | E | I | O | ) ] }| | ||
| 50 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 51 | * | - , <| Z | X | C | V | B | K | M | ? | | | ^ | _ . >| | ||
| 52 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 53 | * |Lower |Raise | Ctrl | Alt | Bksp | Spc |Enter |LShft | ESC | < | v | > | | ||
| 54 | * `-----------------------------------------------------------------------------------' | ||
| 55 | */ | ||
| 56 | [_COLE] = KEYMAP( | ||
| 57 | TD(TD_BTK), KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_EQL, TD(TD_TDE), | ||
| 58 | TD(TD_LPRN), KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, TD(TD_RPRN), | ||
| 59 | TD(TD_MIN), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_SLSH, KC_BSLS, KC_UP, TD(TD_USC), | ||
| 60 | LOWER, RAISE, OSM(MOD_LCTL), OSM(MOD_LALT), KC_SPC, KC_BSPC, KC_ENT, OSM(MOD_LSFT), KC_ESC, KC_LEFT, KC_DOWN, KC_RGHT), | ||
| 61 | |||
| 62 | /* Lower | ||
| 63 | * ,-----------------------------------------------------------------------------------. | ||
| 64 | * | ---- | ---- | ---- | ---- | ---- | ---- | 7 | 8 | 9 | * | / | ^ | | ||
| 65 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 66 | * | ---- | ---- | ---- | ---- | ---- | ---- | 4 | 5 | 6 | + | - | ---- | | ||
| 67 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 68 | * | ---- | ---- | ---- | ---- | ---- | ---- | 1 | 2 | 3 | = | ---- | ---- | | ||
| 69 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 70 | * | ---- | ---- | ---- | ---- | ---- | ---- | ---- | 0 | . | ---- | ---- | ---- | | ||
| 71 | * `-----------------------------------------------------------------------------------' | ||
| 72 | */ | ||
| 73 | [_LOWER] = KEYMAP( | ||
| 74 | ____, ____, ____, ____, ____, ____, KC_7, KC_8, KC_9, KC_PAST, KC_PSLS, KC_CIRC, | ||
| 75 | ____, ____, ____, ____, ____, ____, KC_4, KC_5, KC_6, KC_PPLS, KC_PMNS, ____, | ||
| 76 | ____, ____, ____, ____, ____, ____, KC_1, KC_2, KC_3, KC_PEQL, ____, ____, | ||
| 77 | ____, ____, ____, ____, ____, ____, ____, KC_0, KC_MNXT, ____, ____, ____), | ||
| 78 | |||
| 79 | /* Raise | ||
| 80 | * ,-----------------------------------------------------------------------------------. | ||
| 81 | * | F1 | F2 | F3 | F4 | F5 | F6 | ! | @ | # | $ | % | ` ~ | | ||
| 82 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 83 | * | F7 | F8 | F9 | F10 | F11 | F12 | ^ | & | * | ( | ) | - _ | | ||
| 84 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 85 | * | ____ | ____ | ____ | ____ | ____ | ____ | [ { | ] } | \ | | ; : | ' " | = + | | ||
| 86 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 87 | * | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | , < | . > | / ? | | ||
| 88 | * `-----------------------------------------------------------------------------------' | ||
| 89 | */ | ||
| 90 | [_RAISE] = KEYMAP( | ||
| 91 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_GRV, | ||
| 92 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_MINS, | ||
| 93 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, KC_EQL, | ||
| 94 | ____, ____, ____, ____, ____, ____, ____, ____, ____, KC_COMM, KC_DOT, KC_SLSH), | ||
| 95 | |||
| 96 | /* Adjust (Lower + Raise) | ||
| 97 | * ,-----------------------------------------------------------------------------------. | ||
| 98 | * | Reset| ____ | ____ | ____ | ____ | ____ | ____ | LOCK | ____ | ____ | ____ | VUP | | ||
| 99 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 100 | * | ____ | ____ | RUN | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | VDWN | | ||
| 101 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 102 | * | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | PGUP | MUTE | | ||
| 103 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 104 | * | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | ____ | HOME | PGDN | END | | ||
| 105 | * `-----------------------------------------------------------------------------------' | ||
| 106 | */ | ||
| 107 | [_AUX] = KEYMAP( | ||
| 108 | RESET, ____, ____, ____, ____, ____, ____, LGUI(KC_L), ____, ____, ____, KC_VOLU, | ||
| 109 | ____, ____, LGUI(KC_R), ____, ____, ____, ____, ____, ____, ____, ____, KC_VOLD, | ||
| 110 | ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, KC_PGUP, KC_MUTE, | ||
| 111 | ____, ____, ____, ____, KC_TAB, KC_DEL, ____, ____, ____, KC_HOME, KC_PGDOWN, KC_END) | ||
| 112 | |||
| 113 | }; | ||
| 114 | |||
| 115 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 116 | [TD_BTK] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_GRV), | ||
| 117 | [TD_TDE] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_TILD), | ||
| 118 | [TD_LPRN] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LPRN), | ||
| 119 | [TD_RPRN] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RPRN), | ||
| 120 | [TD_MIN] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_MINS), | ||
| 121 | [TD_USC] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_UNDS)}; | ||
| 122 | |||
| 123 | void persistent_default_layer_set(uint16_t default_layer) | ||
| 124 | { | ||
| 125 | eeconfig_update_default_layer(default_layer); | ||
| 126 | default_layer_set(default_layer); | ||
| 127 | }; | ||
| 128 | |||
| 129 | void matrix_scan_user(void){}; | ||
| 130 | |||
| 131 | void matrix_init_user(void){}; | ||
| 132 | |||
| 133 | bool process_record_user(uint16_t keycode, keyrecord_t *record) | ||
| 134 | { | ||
| 135 | switch (keycode) | ||
| 136 | { | ||
| 137 | case COLE: | ||
| 138 | if (record->event.pressed) | ||
| 139 | { | ||
| 140 | persistent_default_layer_set(1UL << _COLE); | ||
| 141 | } | ||
| 142 | return false; | ||
| 143 | break; | ||
| 144 | case LOWER: | ||
| 145 | if (record->event.pressed) | ||
| 146 | { | ||
| 147 | layer_on(_LOWER); | ||
| 148 | update_tri_layer(_LOWER, _RAISE, _AUX); | ||
| 149 | } | ||
| 150 | else | ||
| 151 | { | ||
| 152 | layer_off(_LOWER); | ||
| 153 | update_tri_layer(_LOWER, _RAISE, _AUX); | ||
| 154 | } | ||
| 155 | return false; | ||
| 156 | break; | ||
| 157 | case RAISE: | ||
| 158 | if (record->event.pressed) | ||
| 159 | { | ||
| 160 | layer_on(_RAISE); | ||
| 161 | update_tri_layer(_LOWER, _RAISE, _AUX); | ||
| 162 | } | ||
| 163 | else | ||
| 164 | { | ||
| 165 | layer_off(_RAISE); | ||
| 166 | update_tri_layer(_LOWER, _RAISE, _AUX); | ||
| 167 | } | ||
| 168 | return false; | ||
| 169 | break; | ||
| 170 | case AUX: | ||
| 171 | if (record->event.pressed) | ||
| 172 | { | ||
| 173 | layer_on(_AUX); | ||
| 174 | } | ||
| 175 | else | ||
| 176 | { | ||
| 177 | layer_off(_AUX); | ||
| 178 | } | ||
| 179 | return false; | ||
| 180 | break; | ||
| 181 | } | ||
| 182 | return true; | ||
| 183 | } | ||
diff --git a/keyboards/lets_split/keymaps/heartrobotninja/rules.mk b/keyboards/lets_split/keymaps/heartrobotninja/rules.mk new file mode 100644 index 000000000..d5e58dad4 --- /dev/null +++ b/keyboards/lets_split/keymaps/heartrobotninja/rules.mk | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 10 | TAP_DANCE_ENABLE = yes | ||
| 11 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 12 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 13 | MIDI_ENABLE = no # MIDI controls | ||
| 14 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 15 | UNICODE_ENABLE = no # Unicode | ||
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 17 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 18 | ONEHAND_ENABLE = no # Enable one-hand typing | ||
| 19 | |||
| 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 22 | |||
| 23 | ifndef QUANTUM_DIR | ||
| 24 | include ../../../../Makefile | ||
| 25 | endif | ||
| 26 | |||
