forked from mirrors/qmk_userspace
[Keyboard] Add Kyria rev3 (#19423)
This commit is contained in:
parent
53cc6170ae
commit
64c399ba38
20 changed files with 627 additions and 125 deletions
45
keyboards/splitkb/kyria/rev3/config.h
Normal file
45
keyboards/splitkb/kyria/rev3/config.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/* Copyright 2022 splitkb.com <support@splitkb.com>
|
||||
*
|
||||
* 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
|
||||
|
||||
// `SPLIT_HAND_PIN` can currently be defined in `info.json`,
|
||||
// but can't yet be given a value
|
||||
#define SPLIT_HAND_PIN B5
|
||||
|
||||
// Not yet available in `info.json`
|
||||
#ifdef OLED_ENABLE
|
||||
# define OLED_DISPLAY_128X64
|
||||
# define SPLIT_OLED_ENABLE
|
||||
#endif
|
||||
|
||||
// Not yet available in `info.json`
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
|
||||
# define RGB_MATRIX_LED_COUNT RGBLED_NUM
|
||||
# define RGB_MATRIX_SPLIT RGBLED_SPLIT
|
||||
# define SPLIT_TRANSPORT_MIRROR
|
||||
#endif
|
||||
|
||||
// Not yet available in `info.json`
|
||||
#ifdef BOOTMAGIC_ENABLE
|
||||
// Top left key on left half
|
||||
# define BOOTMAGIC_LITE_ROW 0
|
||||
# define BOOTMAGIC_LITE_COLUMN 6
|
||||
// Top right key on right half
|
||||
# define BOOTMAGIC_LITE_ROW_RIGHT 4
|
||||
# define BOOTMAGIC_LITE_COLUMN_RIGHT 6
|
||||
#endif
|
241
keyboards/splitkb/kyria/rev3/info.json
Normal file
241
keyboards/splitkb/kyria/rev3/info.json
Normal file
|
@ -0,0 +1,241 @@
|
|||
{
|
||||
"keyboard_name": "Kyria rev3",
|
||||
"usb": {
|
||||
"pid": "0xCF44",
|
||||
},
|
||||
"features": {
|
||||
"mousekey": true,
|
||||
"bootmagic": true,
|
||||
"extrakey": true,
|
||||
"oled": true,
|
||||
"rgb_matrix": true
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"label": "L06", "matrix": [0, 6], "x": 0, "y": 0.75},
|
||||
{"label": "L05", "matrix": [0, 5], "x": 1, "y": 0.75},
|
||||
{"label": "L04", "matrix": [0, 4], "x": 2, "y": 0.25},
|
||||
{"label": "L03", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "L02", "matrix": [0, 2], "x": 4, "y": 0.25},
|
||||
{"label": "L01", "matrix": [0, 1], "x": 5, "y": 0.5},
|
||||
{"label": "R01", "matrix": [4, 1], "x": 10.5, "y": 0.5},
|
||||
{"label": "R02", "matrix": [4, 2], "x": 11.5, "y": 0.25},
|
||||
{"label": "R03", "matrix": [4, 3], "x": 12.5, "y": 0},
|
||||
{"label": "R04", "matrix": [4, 4], "x": 13.5, "y": 0.25},
|
||||
{"label": "R05", "matrix": [4, 5], "x": 14.5, "y": 0.75},
|
||||
{"label": "R06", "matrix": [4, 6], "x": 15.5, "y": 0.75},
|
||||
|
||||
{"label": "L12", "matrix": [1, 6], "x": 0, "y": 1.75},
|
||||
{"label": "L11", "matrix": [1, 5], "x": 1, "y": 1.75},
|
||||
{"label": "L10", "matrix": [1, 4], "x": 2, "y": 1.25},
|
||||
{"label": "L09", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "L08", "matrix": [1, 2], "x": 4, "y": 1.25},
|
||||
{"label": "L07", "matrix": [1, 1], "x": 5, "y": 1.5},
|
||||
{"label": "R07", "matrix": [5, 1], "x": 10.5, "y": 1.5},
|
||||
{"label": "R08", "matrix": [5, 2], "x": 11.5, "y": 1.25},
|
||||
{"label": "R09", "matrix": [5, 3], "x": 12.5, "y": 1},
|
||||
{"label": "R10", "matrix": [5, 4], "x": 13.5, "y": 1.25},
|
||||
{"label": "R11", "matrix": [5, 5], "x": 14.5, "y": 1.75},
|
||||
{"label": "R12", "matrix": [5, 6], "x": 15.5, "y": 1.75},
|
||||
|
||||
{"label": "L20", "matrix": [2, 6], "x": 0, "y": 2.75},
|
||||
{"label": "L19", "matrix": [2, 5], "x": 1, "y": 2.75},
|
||||
{"label": "L18", "matrix": [2, 4], "x": 2, "y": 2.25},
|
||||
{"label": "L17", "matrix": [2, 3], "x": 3, "y": 2},
|
||||
{"label": "L16", "matrix": [2, 2], "x": 4, "y": 2.25},
|
||||
{"label": "L15", "matrix": [2, 1], "x": 5, "y": 2.5},
|
||||
{"label": "L14", "matrix": [3, 3], "x": 6, "y": 3},
|
||||
{"label": "L13", "matrix": [2, 0], "x": 7, "y": 3.25},
|
||||
{"label": "R13", "matrix": [6, 0], "x": 8.5, "y": 3.25},
|
||||
{"label": "R14", "matrix": [7, 3], "x": 9.5, "y": 3},
|
||||
{"label": "R15", "matrix": [6, 1], "x": 10.5, "y": 2.5},
|
||||
{"label": "R16", "matrix": [6, 2], "x": 11.5, "y": 2.25},
|
||||
{"label": "R17", "matrix": [6, 3], "x": 12.5, "y": 2},
|
||||
{"label": "R18", "matrix": [6, 4], "x": 13.5, "y": 2.25},
|
||||
{"label": "R19", "matrix": [6, 5], "x": 14.5, "y": 2.75},
|
||||
{"label": "R20", "matrix": [6, 6], "x": 15.5, "y": 2.75},
|
||||
|
||||
{"label": "L25", "matrix": [3, 4], "x": 2.5, "y": 3.25},
|
||||
{"label": "L24", "matrix": [3, 2], "x": 3.5, "y": 3.25},
|
||||
{"label": "L23", "matrix": [3, 1], "x": 4.5, "y": 3.5},
|
||||
{"label": "L22", "matrix": [3, 5], "x": 5.5, "y": 4},
|
||||
{"label": "L21", "matrix": [3, 0], "x": 6.5, "y": 4.25},
|
||||
{"label": "R21", "matrix": [7, 0], "x": 9, "y": 4.25},
|
||||
{"label": "R22", "matrix": [7, 5], "x": 10, "y": 4},
|
||||
{"label": "R23", "matrix": [7, 1], "x": 11, "y": 3.5},
|
||||
{"label": "R24", "matrix": [7, 2], "x": 12, "y": 3.25},
|
||||
{"label": "R25", "matrix": [7, 4], "x": 13, "y": 3.25},
|
||||
]
|
||||
},
|
||||
"LAYOUT_stack": {
|
||||
"layout": [
|
||||
{"label": "L06", "matrix": [0, 6], "x": 0, "y": 0.75},
|
||||
{"label": "L05", "matrix": [0, 5], "x": 1, "y": 0.75},
|
||||
{"label": "L04", "matrix": [0, 4], "x": 2, "y": 0.25},
|
||||
{"label": "L03", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "L02", "matrix": [0, 2], "x": 4, "y": 0.25},
|
||||
{"label": "L01", "matrix": [0, 1], "x": 5, "y": 0.5},
|
||||
|
||||
{"label": "L12", "matrix": [1, 6], "x": 0, "y": 1.75},
|
||||
{"label": "L11", "matrix": [1, 5], "x": 1, "y": 1.75},
|
||||
{"label": "L10", "matrix": [1, 4], "x": 2, "y": 1.25},
|
||||
{"label": "L09", "matrix": [1, 3], "x": 3, "y": 1},
|
||||
{"label": "L08", "matrix": [1, 2], "x": 4, "y": 1.25},
|
||||
{"label": "L07", "matrix": [1, 1], "x": 5, "y": 1.5},
|
||||
|
||||
{"label": "L20", "matrix": [2, 6], "x": 0, "y": 2.75},
|
||||
{"label": "L19", "matrix": [2, 5], "x": 1, "y": 2.75},
|
||||
{"label": "L18", "matrix": [2, 4], "x": 2, "y": 2.25},
|
||||
{"label": "L17", "matrix": [2, 3], "x": 3, "y": 2},
|
||||
{"label": "L16", "matrix": [2, 2], "x": 4, "y": 2.25},
|
||||
{"label": "L15", "matrix": [2, 1], "x": 5, "y": 2.5},
|
||||
{"label": "L14", "matrix": [3, 3], "x": 6, "y": 3},
|
||||
{"label": "L13", "matrix": [2, 0], "x": 7, "y": 3.25},
|
||||
|
||||
{"label": "L25", "matrix": [3, 4], "x": 2.5, "y": 3.25},
|
||||
{"label": "L24", "matrix": [3, 2], "x": 3.5, "y": 3.25},
|
||||
{"label": "L23", "matrix": [3, 1], "x": 4.5, "y": 3.5},
|
||||
{"label": "L22", "matrix": [3, 5], "x": 5.5, "y": 4},
|
||||
{"label": "L21", "matrix": [3, 0], "x": 6.5, "y": 4.25},
|
||||
|
||||
{"label": "R01", "matrix": [4, 1], "x": 10.5, "y": 0.5},
|
||||
{"label": "R02", "matrix": [4, 2], "x": 11.5, "y": 0.25},
|
||||
{"label": "R03", "matrix": [4, 3], "x": 12.5, "y": 0},
|
||||
{"label": "R04", "matrix": [4, 4], "x": 13.5, "y": 0.25},
|
||||
{"label": "R05", "matrix": [4, 5], "x": 14.5, "y": 0.75},
|
||||
{"label": "R06", "matrix": [4, 6], "x": 15.5, "y": 0.75},
|
||||
|
||||
{"label": "R07", "matrix": [5, 1], "x": 10.5, "y": 1.5},
|
||||
{"label": "R08", "matrix": [5, 2], "x": 11.5, "y": 1.25},
|
||||
{"label": "R09", "matrix": [5, 3], "x": 12.5, "y": 1},
|
||||
{"label": "R10", "matrix": [5, 4], "x": 13.5, "y": 1.25},
|
||||
{"label": "R11", "matrix": [5, 5], "x": 14.5, "y": 1.75},
|
||||
{"label": "R12", "matrix": [5, 6], "x": 15.5, "y": 1.75},
|
||||
|
||||
{"label": "R13", "matrix": [6, 0], "x": 8.5, "y": 3.25},
|
||||
{"label": "R14", "matrix": [7, 3], "x": 9.5, "y": 3},
|
||||
{"label": "R15", "matrix": [6, 1], "x": 10.5, "y": 2.5},
|
||||
{"label": "R16", "matrix": [6, 2], "x": 11.5, "y": 2.25},
|
||||
{"label": "R17", "matrix": [6, 3], "x": 12.5, "y": 2},
|
||||
{"label": "R18", "matrix": [6, 4], "x": 13.5, "y": 2.25},
|
||||
{"label": "R19", "matrix": [6, 5], "x": 14.5, "y": 2.75},
|
||||
{"label": "R20", "matrix": [6, 6], "x": 15.5, "y": 2.75},
|
||||
|
||||
{"label": "R21", "matrix": [7, 0], "x": 9, "y": 4.25},
|
||||
{"label": "R22", "matrix": [7, 5], "x": 10, "y": 4},
|
||||
{"label": "R23", "matrix": [7, 1], "x": 11, "y": 3.5},
|
||||
{"label": "R24", "matrix": [7, 2], "x": 12, "y": 3.25},
|
||||
{"label": "R25", "matrix": [7, 4], "x": 13, "y": 3.25},
|
||||
]
|
||||
}
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"matrix_pins": {
|
||||
"rows": ["D4", "C6", "D7", "E6"],
|
||||
"cols": ["B4", "F6", "F7", "B1", "B3", "B2", "B6"]
|
||||
},
|
||||
"encoder": {
|
||||
"enabled": true,
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "F4",
|
||||
"pin_b": "F5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"soft_serial_pin": "D2",
|
||||
"main": "matrix_grid",
|
||||
"matrix_pins": {
|
||||
"right": {
|
||||
"rows": ["F6", "F7", "B1", "B3"],
|
||||
"cols": ["B2", "D4", "C6", "D7", "E6", "B4", "B6"]
|
||||
}
|
||||
},
|
||||
"encoder": {
|
||||
"right": {
|
||||
"rotary": [
|
||||
{
|
||||
"pin_a": "F4",
|
||||
"pin_b": "F5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"rgblight": {
|
||||
"pin": "D3",
|
||||
"led_count": 62,
|
||||
"split": true,
|
||||
"split_count": [31, 31],
|
||||
"max_brightness": 128
|
||||
},
|
||||
"rgb_matrix": {
|
||||
"driver": "WS2812",
|
||||
"layout": [
|
||||
{"flags": 2, "x": 75, "y": 2}, // L RGB1
|
||||
{"flags": 2, "x": 50, "y": 1}, // L RGB2
|
||||
{"flags": 2, "x": 14, "y": 4}, // L RGB3
|
||||
{"flags": 2, "x": 25, "y": 45}, // L RGB4
|
||||
{"flags": 2, "x": 58, "y": 49}, // L RGB5
|
||||
{"flags": 2, "x": 94, "y": 53}, // L RGB6
|
||||
{"flags": 4, "matrix": [3, 0], "x": 94, "y": 64}, // L SW21
|
||||
{"flags": 4, "matrix": [3, 5], "x": 79, "y": 60}, // L SW22
|
||||
{"flags": 4, "matrix": [3, 1], "x": 65, "y": 53}, // L SW23
|
||||
{"flags": 4, "matrix": [3, 2], "x": 51, "y": 49}, // L SW24
|
||||
{"flags": 4, "matrix": [3, 4], "x": 36, "y": 49}, // L SW25
|
||||
{"flags": 4, "matrix": [2, 0], "x": 101, "y": 49}, // L SW13
|
||||
{"flags": 4, "matrix": [3, 3], "x": 87, "y": 45}, // L SW14
|
||||
{"flags": 4, "matrix": [2, 1], "x": 72, "y": 38}, // L SW15
|
||||
{"flags": 4, "matrix": [2, 2], "x": 58, "y": 34}, // L SW16
|
||||
{"flags": 4, "matrix": [2, 3], "x": 43, "y": 30}, // L SW17
|
||||
{"flags": 4, "matrix": [2, 4], "x": 29, "y": 34}, // L SW18
|
||||
{"flags": 4, "matrix": [2, 5], "x": 14, "y": 41}, // L SW19
|
||||
{"flags": 4, "matrix": [2, 6], "x": 0, "y": 41}, // L SW20
|
||||
{"flags": 4, "matrix": [1, 1], "x": 72, "y": 23}, // L SW07
|
||||
{"flags": 4, "matrix": [1, 2], "x": 58, "y": 19}, // L SW08
|
||||
{"flags": 4, "matrix": [1, 3], "x": 43, "y": 15}, // L SW09
|
||||
{"flags": 4, "matrix": [1, 4], "x": 29, "y": 19}, // L SW10
|
||||
{"flags": 4, "matrix": [1, 5], "x": 14, "y": 26}, // L SW11
|
||||
{"flags": 4, "matrix": [1, 6], "x": 0, "y": 26}, // L SW12
|
||||
{"flags": 4, "matrix": [0, 1], "x": 72, "y": 8}, // L SW01
|
||||
{"flags": 4, "matrix": [0, 2], "x": 58, "y": 4}, // L SW02
|
||||
{"flags": 4, "matrix": [0, 3], "x": 43, "y": 0}, // L SW03
|
||||
{"flags": 4, "matrix": [0, 4], "x": 29, "y": 4}, // L SW04
|
||||
{"flags": 4, "matrix": [0, 5], "x": 14, "y": 11}, // L SW05
|
||||
{"flags": 4, "matrix": [0, 6], "x": 0, "y": 11}, // L SW06
|
||||
{"flags": 2, "x": 149, "y": 2}, // R RGB1
|
||||
{"flags": 2, "x": 174, "y": 1}, // R RGB2
|
||||
{"flags": 2, "x": 210, "y": 4}, // R RGB3
|
||||
{"flags": 2, "x": 199, "y": 45}, // R RGB4
|
||||
{"flags": 2, "x": 166, "y": 49}, // R RGB5
|
||||
{"flags": 2, "x": 130, "y": 53}, // R RGB6
|
||||
{"flags": 4, "matrix": [7, 0], "x": 130, "y": 64}, // R SW21
|
||||
{"flags": 4, "matrix": [7, 5], "x": 145, "y": 60}, // R SW22
|
||||
{"flags": 4, "matrix": [7, 1], "x": 159, "y": 53}, // R SW23
|
||||
{"flags": 4, "matrix": [7, 2], "x": 173, "y": 49}, // R SW24
|
||||
{"flags": 4, "matrix": [7, 4], "x": 188, "y": 49}, // R SW25
|
||||
{"flags": 4, "matrix": [6, 0], "x": 123, "y": 49}, // R SW13
|
||||
{"flags": 4, "matrix": [7, 3], "x": 137, "y": 45}, // R SW14
|
||||
{"flags": 4, "matrix": [6, 1], "x": 152, "y": 38}, // R SW15
|
||||
{"flags": 4, "matrix": [6, 2], "x": 166, "y": 34}, // R SW16
|
||||
{"flags": 4, "matrix": [6, 3], "x": 181, "y": 30}, // R SW17
|
||||
{"flags": 4, "matrix": [6, 4], "x": 195, "y": 34}, // R SW18
|
||||
{"flags": 4, "matrix": [6, 5], "x": 210, "y": 41}, // R SW19
|
||||
{"flags": 4, "matrix": [6, 6], "x": 224, "y": 41}, // R SW20
|
||||
{"flags": 4, "matrix": [5, 1], "x": 152, "y": 23}, // R SW07
|
||||
{"flags": 4, "matrix": [5, 2], "x": 166, "y": 19}, // R SW08
|
||||
{"flags": 4, "matrix": [5, 3], "x": 181, "y": 15}, // R SW09
|
||||
{"flags": 4, "matrix": [5, 4], "x": 195, "y": 19}, // R SW10
|
||||
{"flags": 4, "matrix": [5, 5], "x": 210, "y": 26}, // R SW11
|
||||
{"flags": 4, "matrix": [5, 6], "x": 224, "y": 26}, // R SW12
|
||||
{"flags": 4, "matrix": [4, 1], "x": 152, "y": 8}, // R SW01
|
||||
{"flags": 4, "matrix": [4, 2], "x": 166, "y": 4}, // R SW02
|
||||
{"flags": 4, "matrix": [4, 3], "x": 181, "y": 0}, // R SW03
|
||||
{"flags": 4, "matrix": [4, 4], "x": 195, "y": 4}, // R SW04
|
||||
{"flags": 4, "matrix": [4, 5], "x": 210, "y": 11}, // R SW05
|
||||
{"flags": 4, "matrix": [4, 6], "x": 224, "y": 11}, // R SW06
|
||||
]
|
||||
}
|
||||
}
|
35
keyboards/splitkb/kyria/rev3/rev3.c
Normal file
35
keyboards/splitkb/kyria/rev3/rev3.c
Normal file
|
@ -0,0 +1,35 @@
|
|||
/* Copyright 2022 splitkb.com <support@splitkb.com>
|
||||
*
|
||||
* 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
|
||||
|
||||
#ifdef SWAP_HANDS_ENABLE
|
||||
// clang-format off
|
||||
__attribute__ ((weak)) const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
|
||||
{{0, 4}, {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}},
|
||||
{{0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}},
|
||||
{{0, 6}, {1, 6}, {2, 6}, {3, 6}, {4, 6}, {5, 6}},
|
||||
{{0, 7}, {1, 7}, {2, 7}, {3, 7}, {4, 7}, {5, 7}},
|
||||
{{0, 0}, {1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}},
|
||||
{{0, 1}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}},
|
||||
{{0, 2}, {1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2}},
|
||||
{{0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}},
|
||||
};
|
||||
// clang-format on
|
||||
# ifdef ENCODER_MAP_ENABLE
|
||||
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {1,0};
|
||||
# endif
|
||||
#endif
|
2
keyboards/splitkb/kyria/rev3/rules.mk
Normal file
2
keyboards/splitkb/kyria/rev3/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Although no rules are defined,
|
||||
# presence of this file is required for QMK to compile it.
|
Loading…
Add table
Add a link
Reference in a new issue