diff options
| author | Ingar Almklov <ingara@gmail.com> | 2020-07-25 18:42:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-25 09:42:50 -0700 |
| commit | 65f4b94cda57a6118b99d36ea0b0ca462e56de5e (patch) | |
| tree | 20dcc76354370a572a79a16c5bed4471ae7697fe | |
| parent | 70a37b9cf5a52fe2d606157c916a561ed954cfc2 (diff) | |
| download | qmk_firmware-65f4b94cda57a6118b99d36ea0b0ca462e56de5e.tar.gz qmk_firmware-65f4b94cda57a6118b99d36ea0b0ca462e56de5e.zip | |
Pinky4: add via support (#9711)
* Pinky4: add via support
* Pinky4/via: simplify rules.mk
* Pinky4/via: use built-in for KC_TRANS, enum for layer
_names
* Pinky4/via: remove redundant rules
* Pinky4/via: remove unnecessary slashes
* Pinky4/via: don't override default bootloader
| -rw-r--r-- | keyboards/pinky/4/config.h | 6 | ||||
| -rw-r--r-- | keyboards/pinky/4/keymaps/via/config.h | 31 | ||||
| -rw-r--r-- | keyboards/pinky/4/keymaps/via/keymap.c | 87 | ||||
| -rw-r--r-- | keyboards/pinky/4/keymaps/via/rules.mk | 5 |
4 files changed, 126 insertions, 3 deletions
diff --git a/keyboards/pinky/4/config.h b/keyboards/pinky/4/config.h index a1544bc48..4c44b0abc 100644 --- a/keyboards/pinky/4/config.h +++ b/keyboards/pinky/4/config.h | |||
| @@ -17,11 +17,11 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | /* USB Device descriptor parameter */ | 19 | /* USB Device descriptor parameter */ |
| 20 | #define VENDOR_ID 0xFEED | 20 | #define VENDOR_ID 0x544E |
| 21 | #define PRODUCT_ID 0x3060 | 21 | #define PRODUCT_ID 0x7034 |
| 22 | #define DEVICE_VER 0x0001 | 22 | #define DEVICE_VER 0x0001 |
| 23 | #define MANUFACTURER tamanishi | 23 | #define MANUFACTURER tamanishi |
| 24 | #define PRODUCT Pinky | 24 | #define PRODUCT Pinky4 |
| 25 | #define DESCRIPTION A split keyboard with 3 or 4 x7 vertically staggered keys and 4 thumb keys | 25 | #define DESCRIPTION A split keyboard with 3 or 4 x7 vertically staggered keys and 4 thumb keys |
| 26 | 26 | ||
| 27 | /* key matrix size */ | 27 | /* key matrix size */ |
diff --git a/keyboards/pinky/4/keymaps/via/config.h b/keyboards/pinky/4/keymaps/via/config.h new file mode 100644 index 000000000..db7977672 --- /dev/null +++ b/keyboards/pinky/4/keymaps/via/config.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2018 'Masayuki Sunahara' | ||
| 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 | //#define USE_MATRIX_I2C | ||
| 20 | |||
| 21 | /* Select hand configuration */ | ||
| 22 | |||
| 23 | #define MASTER_LEFT | ||
| 24 | // #define MASTER_RIGHT | ||
| 25 | // #define EE_HANDS | ||
| 26 | |||
| 27 | #define USE_SERIAL_PD2 | ||
| 28 | |||
| 29 | #define TAPPING_FORCE_HOLD | ||
| 30 | #define TAPPING_TERM 200 | ||
| 31 | #define RETRO_TAPPPING | ||
diff --git a/keyboards/pinky/4/keymaps/via/keymap.c b/keyboards/pinky/4/keymaps/via/keymap.c new file mode 100644 index 000000000..e5f8b65c0 --- /dev/null +++ b/keyboards/pinky/4/keymaps/via/keymap.c | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | /* Copyright 2018 'Masayuki Sunahara' | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _QWERTY, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST | ||
| 24 | }; | ||
| 25 | |||
| 26 | #define KC_LOWER MO(_LOWER) | ||
| 27 | #define KC_RAISE MO(_RAISE) | ||
| 28 | #define KC_ADJ MO(_ADJUST) | ||
| 29 | #define KC_CTLTB CTL_T(KC_TAB) | ||
| 30 | |||
| 31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 32 | [_QWERTY] = LAYOUT( | ||
| 33 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 34 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LPRN, KC_RPRN, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 35 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 36 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 37 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 38 | KC_CTLTB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LCBR, KC_RCBR, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 39 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 40 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_ADJ, KC_ADJ, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 41 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 42 | KC_LALT, KC_LOWER, KC_LGUI, KC_SPC, KC_SPC, KC_RGUI, KC_RAISE, KC_RALT | ||
| 43 | //`---------------------------------------' `---------------------------------------' | ||
| 44 | ), | ||
| 45 | |||
| 46 | [_LOWER] = LAYOUT( | ||
| 47 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 48 | KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
| 49 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 51 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 53 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 54 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 55 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 56 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 57 | //`---------------------------------------' `---------------------------------------' | ||
| 58 | ), | ||
| 59 | |||
| 60 | [_RAISE] = LAYOUT( | ||
| 61 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 62 | KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, | ||
| 63 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 65 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 67 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 69 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 71 | //`---------------------------------------' `---------------------------------------' | ||
| 72 | ), | ||
| 73 | |||
| 74 | [_ADJUST] = LAYOUT( | ||
| 75 | //,---------------------------------------------------------------------. ,---------------------------------------------------------------------. | ||
| 76 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, | ||
| 77 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 78 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_F11, KC_F12, _______, | ||
| 79 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 80 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, | ||
| 81 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 83 | //|---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| | ||
| 84 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 85 | //`---------------------------------------' `---------------------------------------' | ||
| 86 | ) | ||
| 87 | }; | ||
diff --git a/keyboards/pinky/4/keymaps/via/rules.mk b/keyboards/pinky/4/keymaps/via/rules.mk new file mode 100644 index 000000000..645d8584d --- /dev/null +++ b/keyboards/pinky/4/keymaps/via/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | |||
| 2 | VIA_ENABLE = yes | ||
| 3 | MOUSEKEY_ENABLE = yes | ||
| 4 | EXTRAKEY_ENABLE = yes | ||
| 5 | LTO_ENABLE = yes | ||
