Vial support for MechWild Mercutio (#34)
* added Vial build for OBE * Added Vial support for MechWild Mercutio * Update rules.mk
This commit is contained in:
parent
47ae52d274
commit
2eb3b31813
24
keyboards/mechwild/mercutio/keymaps/vial/config.h
Normal file
24
keyboards/mechwild/mercutio/keymaps/vial/config.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 Kyle McCreery
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
/* Define custom font */
|
||||||
|
#define OLED_FONT_H "keyboards/mechwild/mercutio/lib/mercutiofont.c"
|
||||||
|
|
||||||
|
/* VIAL Specific definitions */
|
||||||
|
#define VIAL_KEYBOARD_UID {0xAA, 0xF4, 0xE4, 0x5D, 0xDA, 0x2E, 0x52, 0x2F}
|
||||||
|
#define VIAL_UNLOCK_COMBO_ROWS { 1, 5 }
|
||||||
|
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
|
||||||
|
#define VIAL_ENCODER_DEFAULT { KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS }
|
67
keyboards/mechwild/mercutio/keymaps/vial/keymap.c
Normal file
67
keyboards/mechwild/mercutio/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
/* Copyright 2021 Kyle McCreery
|
||||||
|
*
|
||||||
|
* 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_all(
|
||||||
|
KC_MUTE,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||||
|
MO(1), 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_SLSH, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(2), KC_RCTL ),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all(
|
||||||
|
KC_TRNS,
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
|
||||||
|
KC_TRNS, KC_TRNS, KC_GRV, KC_BSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_SCLN, KC_TRNS, KC_QUOT,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_SLSH, KC_UP,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_TRNS, KC_END, KC_LEFT, KC_DOWN, KC_RIGHT ),
|
||||||
|
|
||||||
|
[2] = LAYOUT_all(
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS,
|
||||||
|
KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, 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_all(
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS )
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
|
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
|
||||||
|
}
|
||||||
|
|
||||||
|
static void render_name(void) {
|
||||||
|
static const char PROGMEM mercutio_name[] = {
|
||||||
|
0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0xB6, 0x95, 0xB5, 0x96, 0xD5, 0xB6, 0xB6,
|
||||||
|
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94,
|
||||||
|
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4,
|
||||||
|
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0x00
|
||||||
|
};
|
||||||
|
oled_write_P(mercutio_name, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
void oled_task_user(void) {
|
||||||
|
render_name();
|
||||||
|
}
|
||||||
|
#endif
|
5
keyboards/mechwild/mercutio/keymaps/vial/rules.mk
Normal file
5
keyboards/mechwild/mercutio/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
|
VIAL_ENABLE = yes
|
||||||
|
VIAL_ENCODERS_ENABLE = yes
|
||||||
|
|
||||||
|
LTO_ENABLE = yes
|
27
keyboards/mechwild/mercutio/keymaps/vial/vial.json
Normal file
27
keyboards/mechwild/mercutio/keymaps/vial/vial.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"name": "MechWild Mercutio",
|
||||||
|
"vendorId": "0x6D77",
|
||||||
|
"productId": "0x1703",
|
||||||
|
"lighting": "none",
|
||||||
|
"matrix": { "rows": 7, "cols": 7 },
|
||||||
|
"layouts": {
|
||||||
|
"labels": [
|
||||||
|
"Split Enter",
|
||||||
|
"Split Left Shift",
|
||||||
|
"Split Spacebar"
|
||||||
|
],
|
||||||
|
"keymap": [
|
||||||
|
[{"x":14},"0,0\n\n\n\n\n\n\n\n\ne","0,1\n\n\n\n\n\n\n\n\ne"],
|
||||||
|
[{"y":0.25,"x":14.5,"c":"#aaaaaa"},"4,2"],
|
||||||
|
[{"y":0.25,"x":2.5,"w":1.5},"0,0",{"c":"#cccccc"},"0,1","0,2","0,3","0,4","0,5","0,6","4,6","4,5","4,4","4,3",{"c":"#aaaaaa","w":1.5},"5,2"],
|
||||||
|
[{"x":2.5,"w":1.75},"1,0",{"c":"#cccccc"},"1,1","1,2","1,3","1,4","1,5","1,6","5,6","5,5","5,4",{"c":"#777777","w":2.25},"5,3\n\n\n0,0",{"x":0.25},"4,1\n\n\n0,1",{"w":1.25},"5,3\n\n\n0,1"],
|
||||||
|
[{"c":"#aaaaaa","w":1.25},"2,0\n\n\n1,1","2,1\n\n\n1,1",{"x":0.25,"w":2.25},"2,0\n\n\n1,0",{"c":"#cccccc"},"6,1","2,3","2,4","2,5","2,6","6,6","6,5","6,4","6,3",{"c":"#aaaaaa","w":1.75},"6,2"],
|
||||||
|
[{"x":2.5,"w":1.25},"3,0","5,1\n\n\n2,0","3,1\n\n\n2,0",{"c":"#cccccc","w":6.25},"3,5\n\n\n2,0",{"c":"#aaaaaa","w":1.25},"3,3","3,2",{"w":1.25},"2,2"],
|
||||||
|
[{"y":0.25,"x":3.75},"5,1\n\n\n2,1",{"w":1.25},"3,1\n\n\n2,1",{"c":"#cccccc","w":2.25},"3,4\n\n\n2,1","3,5\n\n\n2,1",{"w":2.75},"3,6\n\n\n2,1"]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user