Add Vial support for mb-tkl (#873)
* debug * Update vial.json * Update vial.json * Update config.h to 5 RGBLED * Update mbtkl to latest vial/qmk formatting * Updated RGB config * mbtkl removed depreciated RESET keycode
This commit is contained in:
parent
0f70080d79
commit
ebc8bb130a
9 changed files with 721 additions and 0 deletions
328
keyboards/mbtkl/keyboard.json
Normal file
328
keyboards/mbtkl/keyboard.json
Normal file
|
|
@ -0,0 +1,328 @@
|
|||
{
|
||||
"manufacturer": "melonbred",
|
||||
"keyboard_name": "mbtkl",
|
||||
"maintainer": "melonbred",
|
||||
"bootloader": "atmel-dfu",
|
||||
"diode_direction": "COL2ROW",
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
"console": false,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true,
|
||||
"rgblight": true
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": [
|
||||
"F6",
|
||||
"F7",
|
||||
"C7",
|
||||
"C6",
|
||||
"B6",
|
||||
"B5",
|
||||
"B4",
|
||||
"D7",
|
||||
"D6",
|
||||
"D4",
|
||||
"D5",
|
||||
"D3",
|
||||
"B7",
|
||||
"D1",
|
||||
"D2"
|
||||
],
|
||||
"rows": ["F1", "F0", "E6", "F5", "F4"]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"usb": {
|
||||
"device_version": "0.0.1",
|
||||
"pid": "0x0000",
|
||||
"vid": "0xFEED"
|
||||
},
|
||||
"rgblight": {
|
||||
"led_count": 5,
|
||||
"animations": {
|
||||
"breathing": true,
|
||||
"rainbow_mood": true,
|
||||
"rainbow_swirl": true,
|
||||
"snake": true,
|
||||
"knight": true,
|
||||
"christmas": false,
|
||||
"static_gradient": true,
|
||||
"rgb_test": false,
|
||||
"alternating": true,
|
||||
"twinkle": true
|
||||
}
|
||||
},
|
||||
"ws2812": {
|
||||
"pin": "D0"
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_default": {
|
||||
"layout": [
|
||||
{ "label": "K00", "matrix": [0, 0], "x": 0.75, "y": 0 },
|
||||
{ "label": "K01", "matrix": [0, 1], "x": 1.75, "y": 0 },
|
||||
{ "label": "K02", "matrix": [0, 2], "x": 2.75, "y": 0 },
|
||||
{ "label": "K03", "matrix": [0, 3], "x": 3.75, "y": 0 },
|
||||
{ "label": "K04", "matrix": [0, 4], "x": 5.13, "y": 0 },
|
||||
{ "label": "K05", "matrix": [0, 5], "x": 6.13, "y": 0 },
|
||||
{ "label": "K06", "matrix": [0, 6], "x": 7.13, "y": 0 },
|
||||
{ "label": "K07", "matrix": [0, 7], "x": 8.13, "y": 0 },
|
||||
{ "label": "K08", "matrix": [0, 8], "x": 9.5, "y": 0 },
|
||||
{ "label": "K09", "matrix": [0, 9], "x": 10.5, "y": 0 },
|
||||
{ "label": "K0A", "matrix": [0, 10], "x": 11.5, "y": 0 },
|
||||
{ "label": "K0B", "matrix": [0, 11], "x": 12.5, "y": 0 },
|
||||
{ "label": "K0C", "matrix": [0, 12], "x": 13.88, "y": 0 },
|
||||
{ "label": "K0D", "matrix": [0, 13], "x": 14.88, "y": 0 },
|
||||
{ "label": "K0E", "matrix": [0, 14], "x": 15.88, "y": 0 },
|
||||
{ "label": "K10", "matrix": [1, 0], "x": 0, "y": 1.25 },
|
||||
{ "label": "K11", "matrix": [1, 1], "x": 1, "y": 1.25 },
|
||||
{ "label": "K12", "matrix": [1, 2], "x": 2, "y": 1.25 },
|
||||
{ "label": "K13", "matrix": [1, 3], "x": 3, "y": 1.25 },
|
||||
{ "label": "K14", "matrix": [1, 4], "x": 4, "y": 1.25 },
|
||||
{ "label": "K15", "matrix": [1, 5], "x": 5, "y": 1.25 },
|
||||
{ "label": "K16", "matrix": [1, 6], "x": 6.75, "y": 1.25 },
|
||||
{ "label": "K17", "matrix": [1, 7], "x": 7.75, "y": 1.25 },
|
||||
{ "label": "K18", "matrix": [1, 8], "x": 8.75, "y": 1.25 },
|
||||
{ "label": "K19", "matrix": [1, 9], "x": 9.75, "y": 1.25 },
|
||||
{ "label": "K1A", "matrix": [1, 10], "x": 10.75, "y": 1.25 },
|
||||
{
|
||||
"label": "K1B",
|
||||
"matrix": [1, 11],
|
||||
"x": 11.75,
|
||||
"y": 1.25,
|
||||
"w": 1.75
|
||||
},
|
||||
{ "label": "K1C", "matrix": [1, 12], "x": 13.88, "y": 1.25 },
|
||||
{ "label": "K1D", "matrix": [1, 13], "x": 14.88, "y": 1.25 },
|
||||
{ "label": "K1E", "matrix": [1, 14], "x": 15.88, "y": 1.25 },
|
||||
{
|
||||
"label": "K20",
|
||||
"matrix": [2, 0],
|
||||
"x": 0,
|
||||
"y": 2.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K21", "matrix": [2, 1], "x": 1.25, "y": 2.25 },
|
||||
{ "label": "K22", "matrix": [2, 2], "x": 2.25, "y": 2.25 },
|
||||
{ "label": "K23", "matrix": [2, 3], "x": 3.25, "y": 2.25 },
|
||||
{ "label": "K24", "matrix": [2, 4], "x": 4.25, "y": 2.25 },
|
||||
{ "label": "K25", "matrix": [2, 5], "x": 5.25, "y": 2.25 },
|
||||
{ "label": "K26", "matrix": [2, 6], "x": 7, "y": 2.25 },
|
||||
{ "label": "K27", "matrix": [2, 7], "x": 8, "y": 2.25 },
|
||||
{ "label": "K28", "matrix": [2, 8], "x": 9, "y": 2.25 },
|
||||
{ "label": "K29", "matrix": [2, 9], "x": 10, "y": 2.25 },
|
||||
{ "label": "K2A", "matrix": [2, 10], "x": 11, "y": 2.25 },
|
||||
{
|
||||
"label": "K2B",
|
||||
"matrix": [2, 11],
|
||||
"x": 12,
|
||||
"y": 2.25,
|
||||
"w": 1.5
|
||||
},
|
||||
{
|
||||
"label": "K30",
|
||||
"matrix": [3, 0],
|
||||
"x": 0,
|
||||
"y": 3.25,
|
||||
"w": 1.75
|
||||
},
|
||||
{ "label": "K31", "matrix": [3, 1], "x": 1.75, "y": 3.25 },
|
||||
{ "label": "K32", "matrix": [3, 2], "x": 2.75, "y": 3.25 },
|
||||
{ "label": "K33", "matrix": [3, 3], "x": 3.75, "y": 3.25 },
|
||||
{ "label": "K34", "matrix": [3, 4], "x": 4.75, "y": 3.25 },
|
||||
{ "label": "K35", "matrix": [3, 5], "x": 5.75, "y": 3.25 },
|
||||
{ "label": "K36", "matrix": [3, 6], "x": 7.5, "y": 3.25 },
|
||||
{ "label": "K37", "matrix": [3, 7], "x": 8.5, "y": 3.25 },
|
||||
{ "label": "K38", "matrix": [3, 8], "x": 9.5, "y": 3.25 },
|
||||
{ "label": "K39", "matrix": [3, 9], "x": 10.5, "y": 3.25 },
|
||||
{ "label": "K3A", "matrix": [3, 10], "x": 11.5, "y": 3.25 },
|
||||
{ "label": "K3B", "matrix": [3, 11], "x": 12.5, "y": 3.25 },
|
||||
{ "label": "K3D", "matrix": [3, 13], "x": 14.88, "y": 3.25 },
|
||||
{
|
||||
"label": "K40",
|
||||
"matrix": [4, 0],
|
||||
"x": 0,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K41", "matrix": [4, 1], "x": 1.25, "y": 4.25 },
|
||||
{
|
||||
"label": "K42",
|
||||
"matrix": [4, 2],
|
||||
"x": 2.25,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{
|
||||
"label": "K44",
|
||||
"matrix": [4, 4],
|
||||
"x": 3.5,
|
||||
"y": 4.25,
|
||||
"w": 3
|
||||
},
|
||||
{
|
||||
"label": "K47",
|
||||
"matrix": [4, 7],
|
||||
"x": 7.25,
|
||||
"y": 4.25,
|
||||
"w": 2.75
|
||||
},
|
||||
{
|
||||
"label": "K49",
|
||||
"matrix": [4, 9],
|
||||
"x": 10,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K4A", "matrix": [4, 10], "x": 11.25, "y": 4.25 },
|
||||
{
|
||||
"label": "K4B",
|
||||
"matrix": [4, 11],
|
||||
"x": 12.25,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K4C", "matrix": [4, 12], "x": 13.88, "y": 4.25 },
|
||||
{ "label": "K4D", "matrix": [4, 13], "x": 14.88, "y": 4.25 },
|
||||
{ "label": "K4E", "matrix": [4, 14], "x": 15.88, "y": 4.25 }
|
||||
]
|
||||
},
|
||||
"LAYOUT_split": {
|
||||
"layout": [
|
||||
{ "label": "K00", "matrix": [0, 0], "x": 0.75, "y": 0 },
|
||||
{ "label": "K01", "matrix": [0, 1], "x": 1.75, "y": 0 },
|
||||
{ "label": "K02", "matrix": [0, 2], "x": 2.75, "y": 0 },
|
||||
{ "label": "K03", "matrix": [0, 3], "x": 3.75, "y": 0 },
|
||||
{ "label": "K04", "matrix": [0, 4], "x": 5.13, "y": 0 },
|
||||
{ "label": "K05", "matrix": [0, 5], "x": 6.13, "y": 0 },
|
||||
{ "label": "K06", "matrix": [0, 6], "x": 7.13, "y": 0 },
|
||||
{ "label": "K07", "matrix": [0, 7], "x": 8.13, "y": 0 },
|
||||
{ "label": "K08", "matrix": [0, 8], "x": 9.5, "y": 0 },
|
||||
{ "label": "K09", "matrix": [0, 9], "x": 10.5, "y": 0 },
|
||||
{ "label": "K0A", "matrix": [0, 10], "x": 11.5, "y": 0 },
|
||||
{ "label": "K0B", "matrix": [0, 11], "x": 12.5, "y": 0 },
|
||||
{ "label": "K0C", "matrix": [0, 12], "x": 13.88, "y": 0 },
|
||||
{ "label": "K0D", "matrix": [0, 13], "x": 14.88, "y": 0 },
|
||||
{ "label": "K0E", "matrix": [0, 14], "x": 15.88, "y": 0 },
|
||||
{ "label": "K10", "matrix": [1, 0], "x": 0, "y": 1.25 },
|
||||
{ "label": "K11", "matrix": [1, 1], "x": 1, "y": 1.25 },
|
||||
{ "label": "K12", "matrix": [1, 2], "x": 2, "y": 1.25 },
|
||||
{ "label": "K13", "matrix": [1, 3], "x": 3, "y": 1.25 },
|
||||
{ "label": "K14", "matrix": [1, 4], "x": 4, "y": 1.25 },
|
||||
{ "label": "K15", "matrix": [1, 5], "x": 5, "y": 1.25 },
|
||||
{ "label": "K16", "matrix": [1, 6], "x": 6.75, "y": 1.25 },
|
||||
{ "label": "K17", "matrix": [1, 7], "x": 7.75, "y": 1.25 },
|
||||
{ "label": "K18", "matrix": [1, 8], "x": 8.75, "y": 1.25 },
|
||||
{ "label": "K19", "matrix": [1, 9], "x": 9.75, "y": 1.25 },
|
||||
{ "label": "K1A", "matrix": [1, 10], "x": 10.75, "y": 1.25 },
|
||||
{
|
||||
"label": "K1B",
|
||||
"matrix": [1, 11],
|
||||
"x": 11.75,
|
||||
"y": 1.25,
|
||||
"w": 1.75
|
||||
},
|
||||
{ "label": "K1C", "matrix": [1, 12], "x": 13.88, "y": 1.25 },
|
||||
{ "label": "K1D", "matrix": [1, 13], "x": 14.88, "y": 1.25 },
|
||||
{ "label": "K1E", "matrix": [1, 14], "x": 15.88, "y": 1.25 },
|
||||
{
|
||||
"label": "K20",
|
||||
"matrix": [2, 0],
|
||||
"x": 0,
|
||||
"y": 2.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K21", "matrix": [2, 1], "x": 1.25, "y": 2.25 },
|
||||
{ "label": "K22", "matrix": [2, 2], "x": 2.25, "y": 2.25 },
|
||||
{ "label": "K23", "matrix": [2, 3], "x": 3.25, "y": 2.25 },
|
||||
{ "label": "K24", "matrix": [2, 4], "x": 4.25, "y": 2.25 },
|
||||
{ "label": "K25", "matrix": [2, 5], "x": 5.25, "y": 2.25 },
|
||||
{ "label": "K26", "matrix": [2, 6], "x": 7, "y": 2.25 },
|
||||
{ "label": "K27", "matrix": [2, 7], "x": 8, "y": 2.25 },
|
||||
{ "label": "K28", "matrix": [2, 8], "x": 9, "y": 2.25 },
|
||||
{ "label": "K29", "matrix": [2, 9], "x": 10, "y": 2.25 },
|
||||
{ "label": "K2A", "matrix": [2, 10], "x": 11, "y": 2.25 },
|
||||
{
|
||||
"label": "K2B",
|
||||
"matrix": [2, 11],
|
||||
"x": 12,
|
||||
"y": 2.25,
|
||||
"w": 1.5
|
||||
},
|
||||
{
|
||||
"label": "K30",
|
||||
"matrix": [3, 0],
|
||||
"x": 0,
|
||||
"y": 3.25,
|
||||
"w": 1.75
|
||||
},
|
||||
{ "label": "K31", "matrix": [3, 1], "x": 1.75, "y": 3.25 },
|
||||
{ "label": "K32", "matrix": [3, 2], "x": 2.75, "y": 3.25 },
|
||||
{ "label": "K33", "matrix": [3, 3], "x": 3.75, "y": 3.25 },
|
||||
{ "label": "K34", "matrix": [3, 4], "x": 4.75, "y": 3.25 },
|
||||
{ "label": "K35", "matrix": [3, 5], "x": 5.75, "y": 3.25 },
|
||||
{ "label": "K36", "matrix": [3, 6], "x": 7.5, "y": 3.25 },
|
||||
{ "label": "K37", "matrix": [3, 7], "x": 8.5, "y": 3.25 },
|
||||
{ "label": "K38", "matrix": [3, 8], "x": 9.5, "y": 3.25 },
|
||||
{ "label": "K39", "matrix": [3, 9], "x": 10.5, "y": 3.25 },
|
||||
{ "label": "K3A", "matrix": [3, 10], "x": 11.5, "y": 3.25 },
|
||||
{ "label": "K3B", "matrix": [3, 11], "x": 12.5, "y": 3.25 },
|
||||
{ "label": "K3D", "matrix": [3, 13], "x": 14.88, "y": 3.25 },
|
||||
{
|
||||
"label": "K40",
|
||||
"matrix": [4, 0],
|
||||
"x": 0,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K41", "matrix": [4, 1], "x": 1.25, "y": 4.25 },
|
||||
{
|
||||
"label": "K42",
|
||||
"matrix": [4, 2],
|
||||
"x": 2.25,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{
|
||||
"label": "K43",
|
||||
"matrix": [4, 3],
|
||||
"x": 3.5,
|
||||
"y": 4.25,
|
||||
"w": 2
|
||||
},
|
||||
{
|
||||
"label": "K44",
|
||||
"matrix": [4, 4],
|
||||
"x": 5.5,
|
||||
"y": 4.25
|
||||
},
|
||||
{
|
||||
"label": "K47",
|
||||
"matrix": [4, 7],
|
||||
"x": 7.25,
|
||||
"y": 4.25,
|
||||
"w": 2.75
|
||||
},
|
||||
{
|
||||
"label": "K49",
|
||||
"matrix": [4, 9],
|
||||
"x": 10,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K4A", "matrix": [4, 10], "x": 11.25, "y": 4.25 },
|
||||
{
|
||||
"label": "K4B",
|
||||
"matrix": [4, 11],
|
||||
"x": 12.25,
|
||||
"y": 4.25,
|
||||
"w": 1.25
|
||||
},
|
||||
{ "label": "K4C", "matrix": [4, 12], "x": 13.88, "y": 4.25 },
|
||||
{ "label": "K4D", "matrix": [4, 13], "x": 14.88, "y": 4.25 },
|
||||
{ "label": "K4E", "matrix": [4, 14], "x": 15.88, "y": 4.25 }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
53
keyboards/mbtkl/keymaps/default/keymap.c
Normal file
53
keyboards/mbtkl/keymaps/default/keymap.c
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/* Copyright 2020 melonbred
|
||||
*
|
||||
* 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
|
||||
|
||||
// Defines names for use in layer keycodes and the keymap
|
||||
enum layer_names {
|
||||
_BASE,
|
||||
_LAYER1,
|
||||
_LAYER2
|
||||
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_default(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME, KC_PGUP,
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_PSCR, KC_INS, KC_PGDN,
|
||||
CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
MO(_LAYER2), XXXXXXX, KC_LALT, LT(_LAYER1, KC_SPC), KC_SPC, KC_RALT, XXXXXXX, KC_RGUI, KC_LEFT, KC_DOWN, KC_RIGHT
|
||||
),
|
||||
|
||||
[_LAYER1] = LAYOUT_default(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME, KC_PGUP,
|
||||
KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
|
||||
KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT, XXXXXXX,
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
[_LAYER2] = LAYOUT_default(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_RALT, KC_RCTL, KC_DEL, KC_VOLD, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
|
||||
1
keyboards/mbtkl/keymaps/default/readme.md
Normal file
1
keyboards/mbtkl/keymaps/default/readme.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# The default keymap for pegasus
|
||||
52
keyboards/mbtkl/keymaps/split/keymap.c
Normal file
52
keyboards/mbtkl/keymaps/split/keymap.c
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/* Copyright 2020 melonbred
|
||||
*
|
||||
* 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
|
||||
|
||||
// Defines names for use in layer keycodes and the keymap
|
||||
enum layer_names {
|
||||
_BASE,
|
||||
_LAYER1,
|
||||
_LAYER2
|
||||
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_split(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME, KC_PGUP,
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_PSCR, KC_INS, KC_PGDN,
|
||||
CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
MO(_LAYER2), XXXXXXX, KC_LALT, XXXXXXX, LT(_LAYER1, KC_SPC), KC_SPC, KC_RALT, XXXXXXX, KC_RGUI, KC_LEFT, KC_DOWN, KC_RIGHT
|
||||
),
|
||||
|
||||
[_LAYER1] = LAYOUT_split(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME, KC_PGUP,
|
||||
KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
|
||||
KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT, XXXXXXX,
|
||||
_______, _______, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
[_LAYER2] = LAYOUT_split(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_RALT, KC_RCTL, KC_DEL, KC_VOLD, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
)
|
||||
};
|
||||
|
||||
|
||||
9
keyboards/mbtkl/keymaps/vial/config.h
Normal file
9
keyboards/mbtkl/keymaps/vial/config.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x09, 0x7A, 0x78, 0xFE, 0x4F, 0xB4, 0xCB, 0xE4}
|
||||
|
||||
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 11 }
|
||||
50
keyboards/mbtkl/keymaps/vial/keymap.c
Normal file
50
keyboards/mbtkl/keymaps/vial/keymap.c
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/* Copyright 2020 melonbred
|
||||
*
|
||||
* 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
|
||||
|
||||
// Defines names for use in layer keycodes and the keymap
|
||||
enum layer_names {
|
||||
_BASE,
|
||||
_LAYER1,
|
||||
_LAYER2
|
||||
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_default(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME, KC_PGUP,
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_PSCR, KC_INS, KC_PGDN,
|
||||
CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
MO(_LAYER2), XXXXXXX, KC_LALT, LT(_LAYER1, KC_SPC), KC_SPC, KC_RALT, XXXXXXX, KC_RGUI, KC_LEFT, KC_DOWN, KC_RIGHT
|
||||
),
|
||||
|
||||
[_LAYER1] = LAYOUT_default(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_HOME, KC_PGUP,
|
||||
KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
|
||||
KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT, XXXXXXX,
|
||||
_______, _______, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
),
|
||||
|
||||
[_LAYER2] = LAYOUT_default(
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_RALT, KC_RCTL, KC_DEL, KC_VOLD, XXXXXXX,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
|
||||
)
|
||||
};
|
||||
5
keyboards/mbtkl/keymaps/vial/rules.mk
Normal file
5
keyboards/mbtkl/keymaps/vial/rules.mk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
QMK_SETTINGS = no
|
||||
RGBLIGHT_ENABLE = yes
|
||||
202
keyboards/mbtkl/keymaps/vial/vial.json
Normal file
202
keyboards/mbtkl/keymaps/vial/vial.json
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
{
|
||||
"name": "mb-tkl",
|
||||
"vendorId": "0x6d62",
|
||||
"productId": "0x001",
|
||||
"lighting": "qmk_rgblight",
|
||||
"matrix": {
|
||||
"rows": 5,
|
||||
"cols": 15
|
||||
},
|
||||
"layouts": {
|
||||
"labels": [
|
||||
[
|
||||
"Blockers",
|
||||
"WKL",
|
||||
"Non-WKL"
|
||||
],
|
||||
[
|
||||
"Spacebar",
|
||||
"3u",
|
||||
"2u/1u",
|
||||
"1u/2u"
|
||||
]
|
||||
],
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"x": 0.75
|
||||
},
|
||||
"0,0",
|
||||
"0,1",
|
||||
"0,2",
|
||||
"0,3",
|
||||
{
|
||||
"x": 0.38
|
||||
},
|
||||
"0,4",
|
||||
"0,5",
|
||||
"0,6",
|
||||
{
|
||||
"x": 0
|
||||
},
|
||||
"0,7",
|
||||
{
|
||||
"x": 0.37
|
||||
},
|
||||
"0,8",
|
||||
"0,9",
|
||||
"0,10",
|
||||
"0,11",
|
||||
{
|
||||
"x": 0.38
|
||||
},
|
||||
"0,12",
|
||||
"0,13",
|
||||
"0,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.25
|
||||
},
|
||||
"1,0",
|
||||
"1,1",
|
||||
"1,2",
|
||||
"1,3",
|
||||
"1,4",
|
||||
"1,5",
|
||||
{
|
||||
"x": 0.75
|
||||
},
|
||||
"1,6",
|
||||
"1,7",
|
||||
"1,8",
|
||||
"1,9",
|
||||
"1,10",
|
||||
{
|
||||
"w": 1.75
|
||||
},
|
||||
"1,11",
|
||||
{
|
||||
"x": 0.38
|
||||
},
|
||||
"1,12",
|
||||
"1,13",
|
||||
"1,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"2,0",
|
||||
"2,1",
|
||||
"2,2",
|
||||
"2,3",
|
||||
"2,4",
|
||||
"2,5",
|
||||
{
|
||||
"x": 0.75
|
||||
},
|
||||
"2,6",
|
||||
"2,7",
|
||||
"2,8",
|
||||
"2,9",
|
||||
"2,10",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"2,11"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.75
|
||||
},
|
||||
"3,0",
|
||||
"3,1",
|
||||
"3,2",
|
||||
"3,3",
|
||||
"3,4",
|
||||
"3,5",
|
||||
{
|
||||
"x": 0.75
|
||||
},
|
||||
"3,6",
|
||||
"3,7",
|
||||
"3,8",
|
||||
"3,9",
|
||||
"3,10",
|
||||
"3,11",
|
||||
{
|
||||
"x": 1.38
|
||||
},
|
||||
"3,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"4,0",
|
||||
{
|
||||
"d": true
|
||||
},
|
||||
"4,1\n\n\n0,0",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"4,2",
|
||||
{
|
||||
"w": 3
|
||||
},
|
||||
"4,4\n\n\n1,0",
|
||||
{
|
||||
"x": 0.75,
|
||||
"w": 2.75
|
||||
},
|
||||
"4,7",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"4,9",
|
||||
{
|
||||
"d": true
|
||||
},
|
||||
"4,10\n\n\n0,0",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"4,11",
|
||||
{
|
||||
"x": 0.38
|
||||
},
|
||||
"4,12",
|
||||
"4,13",
|
||||
"4,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 1.25
|
||||
},
|
||||
"4,1\n\n\n0,1",
|
||||
{
|
||||
"x": 1.25,
|
||||
"w": 2
|
||||
},
|
||||
"4,3\n\n\n1,1",
|
||||
"4,4\n\n\n1,1",
|
||||
{
|
||||
"x": 4.75
|
||||
},
|
||||
"4,10\n\n\n0,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3.5
|
||||
},
|
||||
"4,3\n\n\n1,2",
|
||||
{
|
||||
"w": 2
|
||||
},
|
||||
"4,4\n\n\n1,2"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
21
keyboards/mbtkl/readme.md
Normal file
21
keyboards/mbtkl/readme.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# MB-TKL
|
||||
|
||||
|
||||
|
||||
* Keyboard Maintainer: [melonbred](https://github.com/melonbred)
|
||||
* Hardware Supported: The PCBs, controllers supported
|
||||
* Hardware Availability: Links to where you can find this hardware
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make mbtkl:default
|
||||
|
||||
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).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
|
||||
Loading…
Add table
Add a link
Reference in a new issue