[Keyboard] Pinky refactor (#11643)
* QMK Configurator layout support for Pinky 3-row and 4-row versions * refactor default keymaps - use an enum for layer names - remove redundant definitions - qmk cformat pass - modify pinky/4 via keymap to mirror pinky/4 default functionality * remove LAYOUT_kc macros This usage is not endorsed by QMK as it has been found to be confusing to novice users. * add VIA support to pinky/3 * update config.h files Removes unnecessary definitions for Backlight, RGB Underglow, Magic config and MIDI. * update main rules.mk file Updates the rules.mk file to match the formatting of the current QMK-provided template. Removes sample bootloader comments, feature rules that are no longer included in the template, and updates the in-line comments. * update and split keyboard readme Updates the main readme file's formatting, adds instructions to access bootloader mode, and adds more specific readmes for each version. * add line breaks between rows in the info.json files * rename layout macros for Community Layout forward compatibility The layouts of the Pinky3 and Pinky4 aren't currently Community Layouts, but support for them could be added with a rules.mk edit should the layouts be added to QMK.miryoku-merge-master
parent
3b663ee495
commit
a7d79f4c00
@ -0,0 +1,66 @@
|
||||
{
|
||||
"keyboard_name": "Pinky3",
|
||||
"url": "",
|
||||
"maintainer": "tamanishi",
|
||||
"width": 16,
|
||||
"height": 5.3,
|
||||
"layouts": {
|
||||
"LAYOUT_split_3x7_4": {
|
||||
"layout": [
|
||||
{"label":"Esc", "x":0, "y":0.3},
|
||||
{"label":"Q", "x":1, "y":0.3},
|
||||
{"label":"W", "x":2, "y":0.2},
|
||||
{"label":"E", "x":3, "y":0},
|
||||
{"label":"R", "x":4, "y":0.2},
|
||||
{"label":"T", "x":5, "y":0.4},
|
||||
{"label":"(", "x":6, "y":0.6},
|
||||
{"label":")", "x":9, "y":0.6},
|
||||
{"label":"Y", "x":10, "y":0.4},
|
||||
{"label":"U", "x":11, "y":0.2},
|
||||
{"label":"I", "x":12, "y":0},
|
||||
{"label":"O", "x":13, "y":0.2},
|
||||
{"label":"P", "x":14, "y":0.3},
|
||||
{"label":"Backspace", "x":15, "y":0.3},
|
||||
|
||||
{"label":"Ctrl / Tab", "x":0, "y":1.3},
|
||||
{"label":"A", "x":1, "y":1.3},
|
||||
{"label":"S", "x":2, "y":1.2},
|
||||
{"label":"D", "x":3, "y":1},
|
||||
{"label":"F", "x":4, "y":1.2},
|
||||
{"label":"G", "x":5, "y":1.4},
|
||||
{"label":"[", "x":6, "y":1.6},
|
||||
{"label":"]", "x":9, "y":1.6},
|
||||
{"label":"H", "x":10, "y":1.4},
|
||||
{"label":"J", "x":11, "y":1.2},
|
||||
{"label":"K", "x":12, "y":1},
|
||||
{"label":"L", "x":13, "y":1.2},
|
||||
{"label":":", "x":14, "y":1.3},
|
||||
{"label":"\"", "x":15, "y":1.3},
|
||||
|
||||
{"label":"Shift", "x":0, "y":2.3},
|
||||
{"label":"Z", "x":1, "y":2.3},
|
||||
{"label":"X", "x":2, "y":2.2},
|
||||
{"label":"C", "x":3, "y":2},
|
||||
{"label":"V", "x":4, "y":2.2},
|
||||
{"label":"B", "x":5, "y":2.4},
|
||||
{"label":"MO(_ADJUST)", "x":6, "y":3},
|
||||
{"label":"MO(_ADJUST)", "x":9, "y":3},
|
||||
{"label":"N", "x":10, "y":2.4},
|
||||
{"label":"M", "x":11, "y":2.2},
|
||||
{"label":"<", "x":12, "y":2},
|
||||
{"label":">", "x":13, "y":2.2},
|
||||
{"label":"?", "x":14, "y":2.3},
|
||||
{"label":"Enter", "x":15, "y":2.3},
|
||||
|
||||
{"label":"Alt", "x":3.5, "y":3.7},
|
||||
{"label":"MO(_LOWER)", "x":4.5, "y":3.8},
|
||||
{"label":"GUI", "x":5.5, "y":4},
|
||||
{"label":"Space", "x":6.5, "y":4.3},
|
||||
{"label":"Space", "x":8.5, "y":4.3},
|
||||
{"label":"GUI", "x":9.5, "y":4},
|
||||
{"label":"MO(_RAISE)", "x":10.5, "y":3.8},
|
||||
{"label":"Alt", "x":11.5, "y":3.7}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
/* Copyright 2018 'Masayuki Sunahara'
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
//#define USE_MATRIX_I2C
|
||||
|
||||
/* Select hand configuration */
|
||||
|
||||
#define MASTER_LEFT
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
#define USE_SERIAL_PD2
|
||||
|
||||
#define TAPPING_FORCE_HOLD
|
||||
#define TAPPING_TERM 200
|
||||
#define RETRO_TAPPPING
|
||||
@ -0,0 +1,97 @@
|
||||
/* Copyright 2018 'Masayuki Sunahara'
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layer_names {
|
||||
_QWERTY,
|
||||
_LOWER,
|
||||
_RAISE,
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
LOWER,
|
||||
RAISE,
|
||||
ADJUST
|
||||
};
|
||||
|
||||
#define CTL_TAB CTL_T(KC_TAB)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWERTY] = LAYOUT_split_3x7_4(
|
||||
KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_LPRN, KC_RPRN, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC,
|
||||
CTL_TAB, KC_A , KC_S , KC_D , KC_F , KC_G , KC_LBRC, KC_RBRC, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT,
|
||||
KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , ADJUST , ADJUST , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_ENT ,
|
||||
KC_LALT, LOWER , KC_LGUI, KC_SPC , KC_SPC , KC_RGUI, RAISE , KC_RALT
|
||||
),
|
||||
[_LOWER] = LAYOUT_split_3x7_4(
|
||||
KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSLS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[_RAISE] = LAYOUT_split_3x7_4(
|
||||
KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSLS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL , _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[_ADJUST] = LAYOUT_split_3x7_4(
|
||||
_______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_LCBR, KC_RCBR, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , _______,
|
||||
_______, KC_F11 , KC_F12 , _______, _______, _______, KC_LCBR, KC_RCBR, KC_HOME, KC_PGDN, KC_PGUP, KC_END , _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
if (record->event.pressed) {
|
||||
// set_timelog();
|
||||
}
|
||||
|
||||
switch (keycode) {
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
} else {
|
||||
layer_off(_LOWER);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RAISE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_RAISE);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
} else {
|
||||
layer_off(_RAISE);
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
} else {
|
||||
layer_off(_ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
|
||||
VIA_ENABLE = yes
|
||||
MOUSEKEY_ENABLE = yes
|
||||
EXTRAKEY_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
@ -0,0 +1,20 @@
|
||||
# Pinky3
|
||||
|
||||
A split keyboard with 3x7 vertically staggered keys and 4 thumb keys.
|
||||
An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix).
|
||||
|
||||
* Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi)
|
||||
* Hardware Supported: Pinky3 (3rows) PCB, Pro Micro
|
||||
* Hardware Availability: [Pinky3 PCB & Case Data](https://github.com/tamanishi/Pinky3)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make pinky/3:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make pinky/3:default:flash
|
||||
|
||||
To reset the board into bootloader mode, double-tap the Reset switch mounted on the PCB.
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
@ -0,0 +1,81 @@
|
||||
{
|
||||
"keyboard_name": "Pinky4",
|
||||
"url": "",
|
||||
"maintainer": "tamanishi",
|
||||
"width": 16,
|
||||
"height": 6.3,
|
||||
"layouts": {
|
||||
"LAYOUT_split_4x7_4": {
|
||||
"layout": [
|
||||
{"label":"Esc", "x":0, "y":0.3},
|
||||
{"label":"1", "x":1, "y":0.3},
|
||||
{"label":"2", "x":2, "y":0.2},
|
||||
{"label":"3", "x":3, "y":0},
|
||||
{"label":"4", "x":4, "y":0.2},
|
||||
{"label":"5", "x":5, "y":0.4},
|
||||
{"label":"(", "x":6, "y":0.6},
|
||||
{"label":")", "x":9, "y":0.6},
|
||||
{"label":"6", "x":10, "y":0.4},
|
||||
{"label":"7", "x":11, "y":0.2},
|
||||
{"label":"8", "x":12, "y":0},
|
||||
{"label":"9", "x":13, "y":0.2},
|
||||
{"label":"0", "x":14, "y":0.3},
|
||||
{"label":"Backspace", "x":15, "y":0.3},
|
||||
|
||||
{"label":"Tab", "x":0, "y":1.3},
|
||||
{"label":"Q", "x":1, "y":1.3},
|
||||
{"label":"W", "x":2, "y":1.2},
|
||||
{"label":"E", "x":3, "y":1},
|
||||
{"label":"R", "x":4, "y":1.2},
|
||||
{"label":"T", "x":5, "y":1.4},
|
||||
{"label":"[", "x":6, "y":1.6},
|
||||
{"label":"]", "x":9, "y":1.6},
|
||||
{"label":"Y", "x":10, "y":1.4},
|
||||
{"label":"U", "x":11, "y":1.2},
|
||||
{"label":"I", "x":12, "y":1},
|
||||
{"label":"O", "x":13, "y":1.2},
|
||||
{"label":"P", "x":14, "y":1.3},
|
||||
{"label":"\\", "x":15, "y":1.3},
|
||||
|
||||
{"label":"Ctrl / Tab", "x":0, "y":2.3},
|
||||
{"label":"A", "x":1, "y":2.3},
|
||||
{"label":"S", "x":2, "y":2.2},
|
||||
{"label":"D", "x":3, "y":2},
|
||||
{"label":"F", "x":4, "y":2.2},
|
||||
{"label":"G", "x":5, "y":2.4},
|
||||
{"label":"{", "x":6, "y":2.6},
|
||||
{"label":"}", "x":9, "y":2.6},
|
||||
{"label":"H", "x":10, "y":2.4},
|
||||
{"label":"J", "x":11, "y":2.2},
|
||||
{"label":"K", "x":12, "y":2},
|
||||
{"label":"L", "x":13, "y":2.2},
|
||||
{"label":":", "x":14, "y":2.3},
|
||||
{"label":"\"", "x":15, "y":2.3},
|
||||
|
||||
{"label":"Shift", "x":0, "y":3.3},
|
||||
{"label":"Z", "x":1, "y":3.3},
|
||||
{"label":"X", "x":2, "y":3.2},
|
||||
{"label":"C", "x":3, "y":3},
|
||||
{"label":"V", "x":4, "y":3.2},
|
||||
{"label":"B", "x":5, "y":3.4},
|
||||
{"label":"MO(_ADJUST)", "x":6, "y":4},
|
||||
{"label":"MO(_ADJUST)", "x":9, "y":4},
|
||||
{"label":"N", "x":10, "y":3.4},
|
||||
{"label":"M", "x":11, "y":3.2},
|
||||
{"label":"<", "x":12, "y":3},
|
||||
{"label":">", "x":13, "y":3.2},
|
||||
{"label":"?", "x":14, "y":3.3},
|
||||
{"label":"Enter", "x":15, "y":3.3},
|
||||
|
||||
{"label":"Alt", "x":3.5, "y":4.7},
|
||||
{"label":"MO(_LOWER)", "x":4.5, "y":4.8},
|
||||
{"label":"GUI", "x":5.5, "y":5},
|
||||
{"label":"Space", "x":6.5, "y":5.3},
|
||||
{"label":"Space", "x":8.5, "y":5.3},
|
||||
{"label":"GUI", "x":9.5, "y":5},
|
||||
{"label":"MO(_RAISE)", "x":10.5, "y":4.8},
|
||||
{"label":"Alt", "x":11.5, "y":4.7}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
# Pinky4
|
||||
|
||||
A split keyboard with 4x7 vertically staggered keys and 4 thumb keys.
|
||||
An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix).
|
||||
|
||||
* Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi)
|
||||
* Hardware Supported: Pinky4 (4rows) PCB, Pro Micro
|
||||
* Hardware Availability: [Pinky4 PCB & Case Data](https://github.com/tamanishi/Pinky4)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make pinky/4:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make pinky/4:default:flash
|
||||
|
||||
To reset the board into bootloader mode, double-tap the Reset switch mounted on the PCB.
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
@ -1,25 +1,22 @@
|
||||
Pinky
|
||||
===
|
||||
# Pinky
|
||||
|
||||
A split keyboard with 3 or 4 x7 vertically staggered keys and 4 thumb keys.
|
||||
An idea is inspired from [crkbd](https://github.com/foostan/crkbd), [Lily58](https://github.com/kata0510/Lily58), [Ergo42](https://github.com/Biacco42/Ergo42) and [Helix](https://github.com/MakotoKurauchi/helix).
|
||||
|
||||
Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi)
|
||||
Hardware Supported: Pinky3(3rows) or Pinky4(4rows) PCB, Pro Micro
|
||||
Hardware Availability: [Pinky3 PCB & Case Data](https://github.com/tamanishi/Pinky3), [Pinky4 PCB & Case Data](https://github.com/tamanishi/Pinky4)
|
||||
* Keyboard Maintainer: [Masayuki Sunahara](https://github.com/tamanishi/) [@tamanishi](https://twitter.com/tamanishi)
|
||||
* Hardware Supported: [Pinky3 (3rows)](3/) or [Pinky4 (4rows)](4/) PCB, Pro Micro
|
||||
* Hardware Availability: [Pinky3 PCB & Case Data](https://github.com/tamanishi/Pinky3), [Pinky4 PCB & Case Data](https://github.com/tamanishi/Pinky4)
|
||||
|
||||
Make example for pinky(3rows) keyboard (after setting up your build environment):
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make pinky:default
|
||||
or
|
||||
make pinky/3:default
|
||||
make pinky/3:default # for Pinky3
|
||||
make pinky/4:default # for Pinky4
|
||||
|
||||
Make example for pinky(4rows) keyboard (after setting up your build environment):
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make pinky/4:default
|
||||
make pinky/3:default:flash # for Pinky3
|
||||
make pinky/4:default:flash # for Pinky4
|
||||
|
||||
Install example for pinky(3rows) keyboard:
|
||||
|
||||
make pinky:default:avrdude
|
||||
To reset the board into bootloader mode, double-tap the Reset switch mounted on the PCB.
|
||||
|
||||
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||
|
||||
Loading…
Reference in New Issue