Snatchpad Vial port (#132)
* Added Vial port for Snatchpad. * Added Vial keymap. * Updated licence header. * Defined default encoder behaviour. * Added encoders enable in rules. * removed files already in qmk
This commit is contained in:
parent
60204b8c62
commit
a8e7880c82
11
keyboards/handwired/snatchpad/keymaps/vial/config.h
Normal file
11
keyboards/handwired/snatchpad/keymaps/vial/config.h
Normal file
@ -0,0 +1,11 @@
|
||||
// Copyright 2022 xia0 (@xia0)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x35, 0xEB, 0x39, 0xAE, 0x97, 0x53, 0xAB, 0x92}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0, 0 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 1, 2 }
|
||||
|
||||
#define VIAL_ENCODER_KEYCODE_DELAY 10
|
||||
#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, KC_MEDIA_REWIND, KC_MEDIA_FAST_FORWARD, KC_MS_DOWN, KC_MS_UP, KC_MS_LEFT, KC_MS_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS }
|
27
keyboards/handwired/snatchpad/keymaps/vial/keymap.c
Normal file
27
keyboards/handwired/snatchpad/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,27 @@
|
||||
// Copyright 2022 xia0 (@xia0)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = LAYOUT(
|
||||
KC_ESC , KC_SPC , MO(2) ,
|
||||
KC_MPRV, KC_MNXT, KC_ENT ,
|
||||
KC_MUTE, KC_MPLY
|
||||
),
|
||||
[1] = LAYOUT(
|
||||
KC_LOCK, KC_UP , _______,
|
||||
KC_LEFT, KC_DOWN, KC_RGHT,
|
||||
KC_BTN1, KC_BTN2
|
||||
),
|
||||
[2] = LAYOUT(
|
||||
_______, _______, _______,
|
||||
_______, _______, _______,
|
||||
TO(0) , TO(1)
|
||||
),
|
||||
[3] = LAYOUT(
|
||||
_______, _______, _______,
|
||||
_______, _______, _______,
|
||||
_______, _______
|
||||
)
|
||||
};
|
4
keyboards/handwired/snatchpad/keymaps/vial/rules.mk
Normal file
4
keyboards/handwired/snatchpad/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,4 @@
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
VIAL_ENCODERS_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
50
keyboards/handwired/snatchpad/keymaps/vial/vial.json
Normal file
50
keyboards/handwired/snatchpad/keymaps/vial/vial.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "snatchpad",
|
||||
"vendorId": "0x6662",
|
||||
"productId": "0x7370",
|
||||
"lighting": "none",
|
||||
"matrix": {
|
||||
"rows": 3,
|
||||
"cols": 3
|
||||
},
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
{
|
||||
"name": "snatchpad"
|
||||
},
|
||||
[
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"0,0",
|
||||
"0,1",
|
||||
"0,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"1,0",
|
||||
"1,1",
|
||||
"1,2"
|
||||
],
|
||||
[
|
||||
{
|
||||
"x": 0.5
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"d": true
|
||||
},
|
||||
"2,1",
|
||||
"2,2"
|
||||
],
|
||||
[
|
||||
"0,0\n\n\n\n\n\n\n\n\ne",
|
||||
"0,1\n\n\n\n\n\n\n\n\ne",
|
||||
"1,0\n\n\n\n\n\n\n\n\ne",
|
||||
"1,1\n\n\n\n\n\n\n\n\ne"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user