Support for ashpil Model M USB-C (#472)
* Add support for ashpil/modelm_usbc * revert config.h to upstream * remove via keymap
This commit is contained in:
parent
427b93b70d
commit
ca8021e65a
8
keyboards/ashpil/modelm_usbc/keymaps/vial/config.h
Normal file
8
keyboards/ashpil/modelm_usbc/keymaps/vial/config.h
Normal file
@ -0,0 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x0A, 0x52, 0x03, 0xC4, 0xD6, 0x2F, 0xA3, 0x5D}
|
||||
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 6 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 2, 6 }
|
51
keyboards/ashpil/modelm_usbc/keymaps/vial/keymap.c
Normal file
51
keyboards/ashpil/modelm_usbc/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,51 @@
|
||||
/* Copyright 2019 ashpil
|
||||
*
|
||||
* 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_fullsize_iso_wkl(
|
||||
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_SCRL, KC_PAUS,
|
||||
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_INS, KC_HOME, KC_PGUP, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
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_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
|
||||
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_BSLS, KC_ENT, KC_P4, KC_P5, KC_P6,
|
||||
KC_LSFT, KC_NUBS, 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_P1, KC_P2, KC_P3, KC_PENT,
|
||||
KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
|
||||
),
|
||||
[1] = LAYOUT_fullsize_iso_wkl(
|
||||
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, 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,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[2] = LAYOUT_fullsize_iso_wkl(
|
||||
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, 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,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
),
|
||||
[3] = LAYOUT_fullsize_iso_wkl(
|
||||
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, 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,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
2
keyboards/ashpil/modelm_usbc/keymaps/vial/rules.mk
Normal file
2
keyboards/ashpil/modelm_usbc/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,2 @@
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
239
keyboards/ashpil/modelm_usbc/keymaps/vial/vial.json
Normal file
239
keyboards/ashpil/modelm_usbc/keymaps/vial/vial.json
Normal file
@ -0,0 +1,239 @@
|
||||
{
|
||||
"name": "IBM Model M 101 ANSI/102 ISO",
|
||||
"vendorId": "0xFEED",
|
||||
"productId": "0x0000",
|
||||
"matrix": {
|
||||
"rows": 8,
|
||||
"cols": 16
|
||||
},
|
||||
"layouts": {
|
||||
"labels": ["ISO"],
|
||||
"keymap": [
|
||||
[
|
||||
"0,2",
|
||||
{
|
||||
"x": 1
|
||||
},
|
||||
"2,3",
|
||||
"2,4",
|
||||
"1,4",
|
||||
"0,4",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"0,6",
|
||||
"0,8",
|
||||
"1,9",
|
||||
"2,9",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"2,6",
|
||||
"3,6",
|
||||
"3,11",
|
||||
"3,12",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"3,15",
|
||||
"4,15",
|
||||
"6,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.25
|
||||
},
|
||||
"2,2",
|
||||
"3,2",
|
||||
"3,3",
|
||||
"3,4",
|
||||
"3,5",
|
||||
"2,5",
|
||||
"2,7",
|
||||
"3,7",
|
||||
"3,8",
|
||||
"3,9",
|
||||
"3,10",
|
||||
"2,10",
|
||||
"2,8",
|
||||
{
|
||||
"w": 2
|
||||
},
|
||||
"1,6",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"2,12",
|
||||
"2,14",
|
||||
"2,13",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"6,11",
|
||||
"6,12",
|
||||
"6,13",
|
||||
"7,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"1,2",
|
||||
"4,2",
|
||||
"4,3",
|
||||
"4,4",
|
||||
"4,5",
|
||||
"1,5",
|
||||
"1,7",
|
||||
"4,7",
|
||||
"4,8",
|
||||
"4,9",
|
||||
"4,10",
|
||||
"1,10",
|
||||
"1,8",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"6,10\n\n\n0,0",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"2,11",
|
||||
"3,14",
|
||||
"3,13",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"4,11",
|
||||
"4,12",
|
||||
"4,13",
|
||||
{
|
||||
"h": 2
|
||||
},
|
||||
"4,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.75
|
||||
},
|
||||
"1,3",
|
||||
"5,2",
|
||||
"5,3",
|
||||
"5,4",
|
||||
"5,5",
|
||||
"0,5",
|
||||
"0,7",
|
||||
"5,7",
|
||||
"5,8",
|
||||
"5,9",
|
||||
"5,10",
|
||||
"0,10",
|
||||
{
|
||||
"w": 2.25
|
||||
},
|
||||
"6,6\n\n\n0,0",
|
||||
{
|
||||
"x": 4
|
||||
},
|
||||
"1,11",
|
||||
"1,12",
|
||||
"1,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 2.25
|
||||
},
|
||||
"1,1\n\n\n0,0",
|
||||
"6,2",
|
||||
"6,3",
|
||||
"6,4",
|
||||
"6,5",
|
||||
"7,5",
|
||||
"7,7",
|
||||
"6,7",
|
||||
"6,8",
|
||||
"6,9",
|
||||
"7,10",
|
||||
{
|
||||
"w": 2.75
|
||||
},
|
||||
"6,1",
|
||||
{
|
||||
"x": 1.5
|
||||
},
|
||||
"0,14",
|
||||
{
|
||||
"x": 1.5
|
||||
},
|
||||
"5,11",
|
||||
"5,12",
|
||||
"5,13",
|
||||
{
|
||||
"h": 2
|
||||
},
|
||||
"5,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"x": 1,
|
||||
"w": 1.5
|
||||
},
|
||||
"0,15",
|
||||
{
|
||||
"w": 7
|
||||
},
|
||||
"7,6",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"7,15",
|
||||
{
|
||||
"x": 1,
|
||||
"w": 1.5
|
||||
},
|
||||
"6,0",
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"7,14",
|
||||
"7,11",
|
||||
"7,12",
|
||||
{
|
||||
"x": 0.5,
|
||||
"w": 2
|
||||
},
|
||||
"0,12",
|
||||
"0,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": 0.75,
|
||||
"x": 13.75,
|
||||
"w": 1.25,
|
||||
"h": 2,
|
||||
"w2": 1.5,
|
||||
"h2": 1,
|
||||
"x2": -0.25
|
||||
},
|
||||
"6,6\n\n\n0,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 12.75
|
||||
},
|
||||
"6,10\n\n\n0,1"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"1,1\n\n\n0,1",
|
||||
"0,3\n\n\n0,1"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user