Arisu, prime_e, ymd75 vial support (#142)
* Arisu, prime_e, ymd75 vial support * looks better like this Co-authored-by: Zhol Internet <zhol@internet.keyboard>
This commit is contained in:
parent
f5749dd690
commit
bdad48e003
13 changed files with 963 additions and 0 deletions
7
keyboards/arisu/keymaps/vial/config.h
Normal file
7
keyboards/arisu/keymaps/vial/config.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0xB5, 0xF8, 0x67, 0x0D, 0x51, 0x58, 0xA3, 0x4D}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 12 }
|
49
keyboards/arisu/keymaps/vial/keymap.c
Normal file
49
keyboards/arisu/keymaps/vial/keymap.c
Normal file
|
@ -0,0 +1,49 @@
|
|||
/* Copyright 2019 Fate
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, KC_PGUP,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGDN,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, MO(1),
|
||||
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,
|
||||
KC_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
[1] = LAYOUT(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
|
||||
_______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
|
||||
[2] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
[3] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
};
|
5
keyboards/arisu/keymaps/vial/rules.mk
Normal file
5
keyboards/arisu/keymaps/vial/rules.mk
Normal file
|
@ -0,0 +1,5 @@
|
|||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
|
||||
# must reduce EEPROM usage
|
||||
LTO_ENABLE = yes
|
268
keyboards/arisu/keymaps/vial/vial.json
Normal file
268
keyboards/arisu/keymaps/vial/vial.json
Normal file
|
@ -0,0 +1,268 @@
|
|||
{
|
||||
"name": "ARISU",
|
||||
"vendorId": "0xFA7E",
|
||||
"productId": "0x0000",
|
||||
"lighting": "none",
|
||||
"matrix": { "rows": 5, "cols": 15 },
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"y": 0.38,
|
||||
"x": 3.75
|
||||
},
|
||||
"0,2",
|
||||
{
|
||||
"x": 8.5
|
||||
},
|
||||
"0,11",
|
||||
{
|
||||
"x": 3.25,
|
||||
"c": "#777777"
|
||||
},
|
||||
"1,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.8799999999999999,
|
||||
"x": 1.75,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,1",
|
||||
{
|
||||
"x": 10.5
|
||||
},
|
||||
"0,12",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,13",
|
||||
"0,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.1200000000000001,
|
||||
"x": 17.75,
|
||||
"c": "#777777"
|
||||
},
|
||||
"2,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.8799999999999999,
|
||||
"x": 1.5,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.5
|
||||
},
|
||||
"1,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,1",
|
||||
{
|
||||
"x": 10
|
||||
},
|
||||
"1,11",
|
||||
"1,12",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"1,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.1200000000000001,
|
||||
"x": 18,
|
||||
"c": "#777777"
|
||||
},
|
||||
"3,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.8799999999999999,
|
||||
"x": 1.25,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.75
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,1",
|
||||
{
|
||||
"x": 9.5
|
||||
},
|
||||
"2,10",
|
||||
"2,11",
|
||||
{
|
||||
"c": "#777777",
|
||||
"w": 2.25
|
||||
},
|
||||
"2,12"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 1,
|
||||
"c": "#aaaaaa",
|
||||
"w": 2.25
|
||||
},
|
||||
"3,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"3,1",
|
||||
{
|
||||
"x": 9.75
|
||||
},
|
||||
"3,10",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.75
|
||||
},
|
||||
"3,11"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 17
|
||||
},
|
||||
"3,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.25,
|
||||
"x": 1,
|
||||
"w": 1.5
|
||||
},
|
||||
"4,0"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 16
|
||||
},
|
||||
"4,12",
|
||||
"4,13",
|
||||
"4,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": 12,
|
||||
"rx": 4.75,
|
||||
"ry": 1.5,
|
||||
"y": -1,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,3",
|
||||
"0,4",
|
||||
"0,5",
|
||||
"0,6"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -0.5
|
||||
},
|
||||
"1,2",
|
||||
"1,3",
|
||||
"1,4",
|
||||
"1,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -0.25
|
||||
},
|
||||
"2,2",
|
||||
"2,3",
|
||||
"2,4",
|
||||
"2,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"3,2",
|
||||
"3,3",
|
||||
"3,4",
|
||||
"3,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.5
|
||||
},
|
||||
"4,2",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"w": 2
|
||||
},
|
||||
"4,4",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"4,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": -12,
|
||||
"rx": 13.5,
|
||||
"y": -1,
|
||||
"x": -4.25,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,7",
|
||||
"0,8",
|
||||
"0,9",
|
||||
"0,10"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -4.75
|
||||
},
|
||||
"1,6",
|
||||
"1,7",
|
||||
"1,8",
|
||||
"1,9",
|
||||
"1,10"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": -4.5
|
||||
},
|
||||
"2,6",
|
||||
"2,7",
|
||||
"2,8",
|
||||
"2,9"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 1,
|
||||
"x": -4.75,
|
||||
"w": 2.75
|
||||
},
|
||||
"4,7",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.5
|
||||
},
|
||||
"4,9"
|
||||
],
|
||||
[
|
||||
{
|
||||
"ry": 1.75,
|
||||
"y": 1.75,
|
||||
"x": -4.25,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"3,6",
|
||||
"3,7",
|
||||
"3,8",
|
||||
"3,9"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
8
keyboards/primekb/prime_e/keymaps/vial/config.h
Normal file
8
keyboards/primekb/prime_e/keymaps/vial/config.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0xF3, 0xB8, 0xA3, 0x29, 0x37, 0x91, 0xFD, 0xA2}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 1 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 12 }
|
||||
#define VIAL_TAP_DANCE_ENTRIES 4
|
117
keyboards/primekb/prime_e/keymaps/vial/keymap.c
Normal file
117
keyboards/primekb/prime_e/keymaps/vial/keymap.c
Normal file
|
@ -0,0 +1,117 @@
|
|||
/* Copyright 2018 Holten Campbell
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
LAYOUT(
|
||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_BSPC,
|
||||
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, MO(3), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT,
|
||||
KC_LCTL, KC_LALT, MO(2), MO(1), KC_SPC, KC_RALT, KC_RGUI, KC_RCTL
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_GRV, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU,
|
||||
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_SCLN, KC_BSLS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
BL_TOGG, BL_STEP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_LBRC, KC_RBRC,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PENT, KC_PDOT, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_TRNS, 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_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
LAYOUT(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
||||
|
||||
void matrix_init_user(void) {
|
||||
// set CapsLock LED to output and low
|
||||
setPinOutput(B1);
|
||||
writePinLow(B1);
|
||||
// set NumLock LED to output and low
|
||||
setPinOutput(B2);
|
||||
writePinLow(B2);
|
||||
// set ScrollLock LED to output and low
|
||||
setPinOutput(B3);
|
||||
writePinLow(B3);
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
||||
writePinHigh(B2);
|
||||
} else {
|
||||
writePinLow(B2);
|
||||
}
|
||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||
writePinHigh(B1);
|
||||
} else {
|
||||
writePinLow(B1);
|
||||
}
|
||||
/*
|
||||
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
||||
writePinHigh(B3);
|
||||
} else {
|
||||
writePinLow(B3);
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
//function for layer indicator LED
|
||||
layer_state_t layer_state_set_user(layer_state_t state)
|
||||
{
|
||||
if (biton32(state) == 1) {
|
||||
writePinHigh(B3);
|
||||
} else {
|
||||
writePinLow(B3);
|
||||
}
|
||||
return state;
|
||||
}
|
13
keyboards/primekb/prime_e/keymaps/vial/readme.md
Normal file
13
keyboards/primekb/prime_e/keymaps/vial/readme.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# The VIAL keymap for Prime_E
|
||||
This keymap is for compatibility with the VIAL configurator.
|
||||
|
||||
## Default disabled features
|
||||
Some features need to be disabled in the [`rules.mk`](./rules.mk) to fit EEPROM.
|
||||
|
||||
* `QMK_SETTINGS`
|
||||
* `COMBO_ENABLE`
|
||||
|
||||
Likewise, `VIAL_TAP_DANCE_ENTRIES` is limited to 4 by default.
|
||||
|
||||
To free up the space to enable/expand these, reduce `DYNAMIC_KEYMAP_LAYER_COUNT`
|
||||
in [`keyboards/primekb/prime_e/config.h`](../../config.h) down to 4.
|
7
keyboards/primekb/prime_e/keymaps/vial/rules.mk
Normal file
7
keyboards/primekb/prime_e/keymaps/vial/rules.mk
Normal file
|
@ -0,0 +1,7 @@
|
|||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
|
||||
# must reduce EEPROM usage
|
||||
LTO_ENABLE = yes
|
||||
QMK_SETTINGS = no
|
||||
COMBO_ENABLE = no
|
187
keyboards/primekb/prime_e/keymaps/vial/vial.json
Normal file
187
keyboards/primekb/prime_e/keymaps/vial/vial.json
Normal file
|
@ -0,0 +1,187 @@
|
|||
{
|
||||
"name": "PRIME_E",
|
||||
"vendorId": "0x5052",
|
||||
"productId": "0x0051",
|
||||
"lighting": "qmk_backlight",
|
||||
"matrix": {"rows": 4, "cols": 13},
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"rx": 6.25,
|
||||
"y": 0.46,
|
||||
"x": 0.8499999999999996,
|
||||
"c": "#777777"
|
||||
},
|
||||
"0,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,1",
|
||||
{
|
||||
"x": 8.949999999999998
|
||||
},
|
||||
"0,10",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,11",
|
||||
"0,12"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.010000000000000009,
|
||||
"x": 0.71,
|
||||
"w": 1.26
|
||||
},
|
||||
"1,0",
|
||||
{
|
||||
"x": -0.009999999999999787,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,1",
|
||||
{
|
||||
"x": 9.23
|
||||
},
|
||||
"1,10",
|
||||
{
|
||||
"c": "#777777",
|
||||
"w": 1.75
|
||||
},
|
||||
"1,12"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.009999999999999787,
|
||||
"x": 0.5600000000000005,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.75
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,1",
|
||||
{
|
||||
"x": 8.519999999999998
|
||||
},
|
||||
"2,10",
|
||||
"2,11",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"2,12"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.009999999999999787,
|
||||
"x": 0.6699999999999999,
|
||||
"w": 1.25
|
||||
},
|
||||
"3,0",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"3,1",
|
||||
{
|
||||
"x": 9.299999999999999,
|
||||
"w": 1.25
|
||||
},
|
||||
"3,11",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"3,12"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": 8,
|
||||
"y": -4.49,
|
||||
"x": 3,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,2",
|
||||
"0,3",
|
||||
"0,4",
|
||||
"0,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3.25
|
||||
},
|
||||
"1,2",
|
||||
"1,3",
|
||||
"1,4",
|
||||
"1,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3.75
|
||||
},
|
||||
"2,2",
|
||||
"2,3",
|
||||
"2,4",
|
||||
"2,5"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 4.5,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"3,3",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"w": 2
|
||||
},
|
||||
"3,4"
|
||||
],
|
||||
[
|
||||
{
|
||||
"r": -8,
|
||||
"y": -1.9,
|
||||
"x": 7.5
|
||||
},
|
||||
"0,6",
|
||||
"0,7",
|
||||
"0,8",
|
||||
"0,9"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 7.75
|
||||
},
|
||||
"1,6",
|
||||
"1,7",
|
||||
"1,8",
|
||||
"1,9"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 7.25,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"2,6",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,7",
|
||||
"2,8",
|
||||
"2,9"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 7.25,
|
||||
"w": 2.25
|
||||
},
|
||||
"3,6",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"3,8"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
7
keyboards/ymdk/ymd75/keymaps/vial/config.h
Normal file
7
keyboards/ymdk/ymd75/keymaps/vial/config.h
Normal file
|
@ -0,0 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0xE1, 0xA9, 0x51, 0xDE, 0x08, 0xE3, 0x75, 0x61}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 5, 0 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 0 }
|
61
keyboards/ymdk/ymd75/keymaps/vial/keymap.c
Normal file
61
keyboards/ymdk/ymd75/keymaps/vial/keymap.c
Normal file
|
@ -0,0 +1,61 @@
|
|||
/* Copyright 2021 kshpits
|
||||
*
|
||||
* 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
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* 0: Main Layer
|
||||
* ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐
|
||||
* │ ESC │ F1 │ F2 │ F3 │ F4 │ F5 │ F6 │ F7 │ F8 │ F9 │ F10 │ F11 │ F12 │PRSCR│PAUSE│ DEL │
|
||||
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┤
|
||||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ BACKSPACE │HOME │
|
||||
* ├─────┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬────────┼─────┤
|
||||
* │ TAB │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │ END │
|
||||
* ├────────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴────────┼─────┤
|
||||
* │ CAPS │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ RETURN │PG_UP│
|
||||
* ├─────────┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴──┬──┴───────┬─────┼─────┤
|
||||
* │ LSHIFT │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ RSHIFT │ UP │PG_DN│
|
||||
* ├──────┬─────┴┬────┴─┬───┴─────┴─────┴─────┴─────┴─────┴────┬┴────┬┴────┬┴────┬─────┼─────┼─────┤
|
||||
* │LCTRL │L_GUI │L_ALT │ SPACE │R_ALT| FN │R_CTR│LEFT │DOWN │RIGHT│
|
||||
* └──────┴──────┴──────┴──────────────────────────────────────┴─────┴─────┴─────┴─────┴─────┘─────┘
|
||||
*/
|
||||
[0] = LAYOUT(
|
||||
KC_ESC, 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_PSCR, KC_PAUS, KC_DEL,
|
||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME,
|
||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END,
|
||||
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN ,KC_QUOT, KC_ENT, KC_PGUP,
|
||||
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, KC_PGDN,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
[1] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, KC_INS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______ ,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, _______,
|
||||
_______, _______, _______, _______, _______, _______, KC_APP, KC_MPRV, KC_VOLD, KC_MNXT
|
||||
),
|
||||
[2] = LAYOUT(
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______ ,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
),
|
||||
};
|
7
keyboards/ymdk/ymd75/keymaps/vial/rules.mk
Normal file
7
keyboards/ymdk/ymd75/keymaps/vial/rules.mk
Normal file
|
@ -0,0 +1,7 @@
|
|||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
KEY_LOCK_ENABLE = no
|
||||
|
||||
# must reduce EEPROM usage
|
||||
LTO_ENABLE = yes
|
||||
COMBO_ENABLE = no
|
227
keyboards/ymdk/ymd75/keymaps/vial/vial.json
Normal file
227
keyboards/ymdk/ymd75/keymaps/vial/vial.json
Normal file
|
@ -0,0 +1,227 @@
|
|||
{
|
||||
"name":"YMD 75 VIA",
|
||||
"vendorId":"0x20A0",
|
||||
"productId":"0x422D",
|
||||
"lighting":"qmk_backlight_rgblight",
|
||||
"matrix":{
|
||||
"rows":12,
|
||||
"cols":9
|
||||
},
|
||||
"layouts":{
|
||||
"keymap":[
|
||||
[
|
||||
{
|
||||
"y": 1.5,
|
||||
"x": 3,
|
||||
"c": "#777777"
|
||||
},
|
||||
"5,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"5,1",
|
||||
"5,2",
|
||||
"5,3",
|
||||
"5,4",
|
||||
"5,5",
|
||||
"5,6",
|
||||
"5,7",
|
||||
"5,8",
|
||||
"11,8",
|
||||
"11,7",
|
||||
"11,5",
|
||||
"11,4",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"11,3",
|
||||
"11,6",
|
||||
"11,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"4,0",
|
||||
"4,1",
|
||||
"4,2",
|
||||
"4,3",
|
||||
"4,4",
|
||||
"4,5",
|
||||
"4,6",
|
||||
"4,7",
|
||||
"4,8",
|
||||
"10,8",
|
||||
"10,7",
|
||||
"10,5",
|
||||
"10,4",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 2
|
||||
},
|
||||
"10,6",
|
||||
"10,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3,
|
||||
"w": 1.5
|
||||
},
|
||||
"3,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"3,1",
|
||||
"3,2",
|
||||
"3,3",
|
||||
"3,4",
|
||||
"3,5",
|
||||
"3,6",
|
||||
"3,7",
|
||||
"3,8",
|
||||
"9,8",
|
||||
"9,7",
|
||||
"9,5",
|
||||
"9,4",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"9,3\n\n\n0,0",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"9,6",
|
||||
{
|
||||
"x": 1.5,
|
||||
"c": "#777777",
|
||||
"w": 1.25,
|
||||
"h": 2,
|
||||
"w2": 1.5,
|
||||
"h2": 1,
|
||||
"x2": -0.25
|
||||
},
|
||||
"8,4\n\n\n0,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.75
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,1",
|
||||
"2,2",
|
||||
"2,3",
|
||||
"2,4",
|
||||
"2,5",
|
||||
"2,6",
|
||||
"2,7",
|
||||
"2,8",
|
||||
"8,8",
|
||||
"8,7",
|
||||
"8,5",
|
||||
{
|
||||
"c": "#777777",
|
||||
"w": 2.25
|
||||
},
|
||||
"8,4\n\n\n0,0",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"8,6",
|
||||
{
|
||||
"x": 0.5,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"9,3\n\n\n0,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"1,0\n\n\n1,1",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,1\n\n\n1,1",
|
||||
{
|
||||
"x": 0.75,
|
||||
"c": "#aaaaaa",
|
||||
"w": 2.25
|
||||
},
|
||||
"1,0\n\n\n1,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,2",
|
||||
"1,3",
|
||||
"1,4",
|
||||
"1,5",
|
||||
"1,6",
|
||||
"1,7",
|
||||
"1,8",
|
||||
"7,8",
|
||||
"7,7",
|
||||
"7,5",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.75
|
||||
},
|
||||
"7,4",
|
||||
"7,3",
|
||||
"7,6"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 3,
|
||||
"w": 1.25
|
||||
},
|
||||
"0,0",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"0,1",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"0,2",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"w": 6.25
|
||||
},
|
||||
"0,6",
|
||||
{
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,8\n\n\n2,0",
|
||||
"0,7\n\n\n2,0",
|
||||
"0,5\n\n\n2,0",
|
||||
"0,4",
|
||||
"0,3",
|
||||
"6,6"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.75,
|
||||
"x": 13,
|
||||
"w": 1.5
|
||||
},
|
||||
"0,8\n\n\n2,1",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"0,5\n\n\n2,1"
|
||||
]
|
||||
],
|
||||
"labels":[
|
||||
"ISO Enter",
|
||||
"ISO Left Shift",
|
||||
"RWKL"
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue