Skip to content

Commit efc1f6f

Browse files
authored
Added VIAL support (#676)
Added VIAL support, changed default keymap, modifyed build rules
1 parent 02bda34 commit efc1f6f

File tree

4 files changed

+440
-0
lines changed

4 files changed

+440
-0
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* Copyright 2018 'Masayuki Sunahara'
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
17+
#pragma once
18+
19+
//#define USE_MATRIX_I2C
20+
21+
/* Select hand configuration */
22+
23+
#define MASTER_LEFT
24+
// #define MASTER_RIGHT
25+
// #define EE_HANDS
26+
27+
// Vial Support
28+
#define VIAL_KEYBOARD_UID {0xE6, 0xB5, 0x80, 0x48, 0xB0, 0x2C, 0xBC, 0x11}
29+
30+
// The four corners
31+
#define VIAL_UNLOCK_COMBO_ROWS { 0, 5, 3, 8 }
32+
#define VIAL_UNLOCK_COMBO_COLS { 0, 0, 0, 0 }
33+
34+
// Tap dance slots
35+
#define VIAL_TAP_DANCE_ENTRIES 10
36+
37+
// Dynamic macro slots
38+
#define DYNAMIC_KEYMAP_MACRO_COUNT 14
39+
40+
// Dynamic key override slots
41+
#define VIAL_KEY_OVERRIDE_ENTRIES 8
42+
43+
#define QUICK_TAP_TERM 0
44+
#define TAPPING_TERM 200
45+
#define RETRO_TAPPPING
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/* Copyright 2018 'Masayuki Sunahara'
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#include QMK_KEYBOARD_H
17+
18+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19+
[0] = LAYOUT(
20+
KC_ESC , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_VOLU, KC_MNXT, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSPC,
21+
KC_GRV , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_VOLD, KC_MPRV, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_LBRC,
22+
KC_TAB , KC_A , KC_S , KC_D , KC_F , KC_G , KC_MUTE, KC_MPLY, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT,
23+
KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_CALC, KC_RGUI, KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT,
24+
KC_LCTL, KC_LALT, MO(2) , KC_SPC , KC_ENT , MO(1) , KC_RALT, KC_RCTL
25+
),
26+
[1] = LAYOUT(
27+
KC_GRV , KC_MPRV, KC_MPLY, KC_MNXT, LALT(KC_F4), _______, _______, _______, KC_PSCR, _______, KC_PGUP, _______, KC_SCRL, KC_TRNS,
28+
KC_CAPS, _______, _______, KC_PGUP, _______, _______, _______, _______, KC_INS , KC_HOME, KC_UP , KC_END , KC_NUM , _______,
29+
KC_TRNS, _______, LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), KC_BTN2, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______,
30+
KC_TRNS, _______, _______, KC_PGDN, _______, _______, _______, _______, KC_CALC, KC_PGUP, KC_PGDN, KC_PGDN, KC_BRK , KC_TRNS,
31+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
32+
),
33+
[2] = LAYOUT(
34+
KC_TRNS, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , _______, _______, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_TRNS,
35+
KC_CAPS, LSFT(KC_1), LSFT(KC_2), LSFT(KC_3), LSFT(KC_4), LSFT(KC_5), _______, _______, LSFT(KC_6), LSFT(KC_7), LSFT(KC_8), LSFT(KC_9), LSFT(KC_0), KC_F11,
36+
KC_TRNS, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_F12,
37+
KC_TRNS, LSFT(KC_EQUAL), KC_MINUS, KC_EQUAL, KC_COMMA, KC_DOT, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS, KC_DOT, KC_SLSH, KC_TRNS,
38+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
39+
),
40+
[3] = LAYOUT(
41+
KC_TRNS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TRNS,
42+
KC_TRNS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43+
KC_TRNS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44+
KC_TRNS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_TRNS,
45+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
46+
)
47+
};
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Building options
2+
3+
LTO_ENABLE = yes
4+
VIA_ENABLE = yes
5+
VIAL_ENABLE = yes
6+
MOUSEKEY_ENABLE = yes
7+
EXTRAKEY_ENABLE = yes
8+
COMBO_ENABLE = yes
9+
KEY_OVERRIDE_ENABLE = yes
10+
QMK_SETTINGS = no
11+
TAP_DANCE_ENABLE = yes
12+
NKRO_ENABLE = yes

0 commit comments

Comments
 (0)