add vial support to reviung5 (#278)
This commit is contained in:
parent
bd46bafb45
commit
f093404714
7
keyboards/reviung/reviung5/keymaps/vial/config.h
Normal file
7
keyboards/reviung/reviung5/keymaps/vial/config.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define VIAL_KEYBOARD_UID {0x4D, 0x60, 0x3A, 0x29, 0x33, 0x35, 0x61, 0x41}
|
||||||
|
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
|
||||||
|
#define VIAL_UNLOCK_COMBO_COLS { 0, 1 }
|
41
keyboards/reviung/reviung5/keymaps/vial/keymap.c
Normal file
41
keyboards/reviung/reviung5/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/* Copyright 2021 gtips
|
||||||
|
*
|
||||||
|
* 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,
|
||||||
|
_LOWER,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define LO_VD LT(_LOWER, KC_VOLD)
|
||||||
|
|
||||||
|
#if defined(ENCODER_MAP_ENABLE)
|
||||||
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||||
|
[_BASE] = { ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN) },
|
||||||
|
[_LOWER] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Base */
|
||||||
|
[_BASE] = LAYOUT_reviung5(
|
||||||
|
LO_VD, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLU
|
||||||
|
),
|
||||||
|
[_LOWER] = LAYOUT_reviung5(
|
||||||
|
_______, RGB_HUI, RGB_MOD, RGB_TOG, KC_MUTE
|
||||||
|
)
|
||||||
|
};
|
1
keyboards/reviung/reviung5/keymaps/vial/readme.md
Normal file
1
keyboards/reviung/reviung5/keymaps/vial/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
# The default keymap for reviung5
|
8
keyboards/reviung/reviung5/keymaps/vial/rules.mk
Normal file
8
keyboards/reviung/reviung5/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
|
VIAL_ENABLE = yes
|
||||||
|
LTO_ENABLE = yes
|
||||||
|
QMK_SETTINGS = no
|
||||||
|
KEY_OVERRIDE_ENABLE = no
|
||||||
|
TAP_DANCE_ENABLE = yes
|
||||||
|
COMBO_ENABLE = no
|
||||||
|
ENCODER_MAP_ENABLE = yes
|
48
keyboards/reviung/reviung5/keymaps/vial/vial.json
Normal file
48
keyboards/reviung/reviung5/keymaps/vial/vial.json
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{
|
||||||
|
"lighting": "qmk_rgblight",
|
||||||
|
"matrix": {
|
||||||
|
"rows": 1,
|
||||||
|
"cols": 5
|
||||||
|
},
|
||||||
|
"layouts": {
|
||||||
|
"keymap":[
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": 0.5,
|
||||||
|
"x": 1
|
||||||
|
},
|
||||||
|
"0,1",
|
||||||
|
"0,2",
|
||||||
|
"0,3"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"y": 0.5,
|
||||||
|
"x": 4.25
|
||||||
|
},
|
||||||
|
"0,0\n\n\n\n\n\n\n\n\ne"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"x": 4.25
|
||||||
|
},
|
||||||
|
"0,1\n\n\n\n\n\n\n\n\ne"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"r": 15,
|
||||||
|
"y": -4
|
||||||
|
},
|
||||||
|
"0,0"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"r": -15,
|
||||||
|
"rx": 4.75,
|
||||||
|
"x": -0.75
|
||||||
|
},
|
||||||
|
"0,4"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user