Skip to content

Commit

Permalink
Arisu, prime_e, ymd75 vial support (qmk#142)
Browse files Browse the repository at this point in the history
* Arisu, prime_e, ymd75 vial support

* looks better like this

Co-authored-by: Zhol Internet <zhol@internet.keyboard>
  • Loading branch information
zhol0777 and Zhol Internet authored Apr 9, 2022
1 parent f5749dd commit bdad48e
Show file tree
Hide file tree
Showing 13 changed files with 963 additions and 0 deletions.
7 changes: 7 additions & 0 deletions keyboards/arisu/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

#define VIAL_KEYBOARD_UID {0xB5, 0xF8, 0x67, 0x0D, 0x51, 0x58, 0xA3, 0x4D}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 12 }
49 changes: 49 additions & 0 deletions keyboards/arisu/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/* Copyright 2019 Fate
*
* 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(
KC_GESC, 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_BSLS, KC_GRV, KC_PGUP,
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_BSPC, KC_PGDN,
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_ENT, MO(1),
KC_LSFT, 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_LCTL, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
),

[1] = LAYOUT(
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
_______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______
),

[2] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______
),
[3] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
5 changes: 5 additions & 0 deletions keyboards/arisu/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes

# must reduce EEPROM usage
LTO_ENABLE = yes
268 changes: 268 additions & 0 deletions keyboards/arisu/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
{
"name": "ARISU",
"vendorId": "0xFA7E",
"productId": "0x0000",
"lighting": "none",
"matrix": { "rows": 5, "cols": 15 },
"layouts": {
"keymap": [
[
{
"y": 0.38,
"x": 3.75
},
"0,2",
{
"x": 8.5
},
"0,11",
{
"x": 3.25,
"c": "#777777"
},
"1,14"
],
[
{
"y": -0.8799999999999999,
"x": 1.75,
"c": "#aaaaaa"
},
"0,0",
{
"c": "#cccccc"
},
"0,1",
{
"x": 10.5
},
"0,12",
{
"c": "#aaaaaa"
},
"0,13",
"0,14"
],
[
{
"y": -0.1200000000000001,
"x": 17.75,
"c": "#777777"
},
"2,14"
],
[
{
"y": -0.8799999999999999,
"x": 1.5,
"c": "#aaaaaa",
"w": 1.5
},
"1,0",
{
"c": "#cccccc"
},
"1,1",
{
"x": 10
},
"1,11",
"1,12",
{
"w": 1.5
},
"1,13"
],
[
{
"y": -0.1200000000000001,
"x": 18,
"c": "#777777"
},
"3,14"
],
[
{
"y": -0.8799999999999999,
"x": 1.25,
"c": "#aaaaaa",
"w": 1.75
},
"2,0",
{
"c": "#cccccc"
},
"2,1",
{
"x": 9.5
},
"2,10",
"2,11",
{
"c": "#777777",
"w": 2.25
},
"2,12"
],
[
{
"x": 1,
"c": "#aaaaaa",
"w": 2.25
},
"3,0",
{
"c": "#cccccc"
},
"3,1",
{
"x": 9.75
},
"3,10",
{
"c": "#aaaaaa",
"w": 1.75
},
"3,11"
],
[
{
"y": -0.75,
"x": 17
},
"3,13"
],
[
{
"y": -0.25,
"x": 1,
"w": 1.5
},
"4,0"
],
[
{
"y": -0.75,
"x": 16
},
"4,12",
"4,13",
"4,14"
],
[
{
"r": 12,
"rx": 4.75,
"ry": 1.5,
"y": -1,
"c": "#cccccc"
},
"0,3",
"0,4",
"0,5",
"0,6"
],
[
{
"x": -0.5
},
"1,2",
"1,3",
"1,4",
"1,5"
],
[
{
"x": -0.25
},
"2,2",
"2,3",
"2,4",
"2,5"
],
[
{
"x": 0.25
},
"3,2",
"3,3",
"3,4",
"3,5"
],
[
{
"x": 0.25,
"c": "#aaaaaa",
"w": 1.5
},
"4,2",
{
"c": "#cccccc",
"w": 2
},
"4,4",
{
"c": "#aaaaaa"
},
"4,5"
],
[
{
"r": -12,
"rx": 13.5,
"y": -1,
"x": -4.25,
"c": "#cccccc"
},
"0,7",
"0,8",
"0,9",
"0,10"
],
[
{
"x": -4.75
},
"1,6",
"1,7",
"1,8",
"1,9",
"1,10"
],
[
{
"x": -4.5
},
"2,6",
"2,7",
"2,8",
"2,9"
],
[
{
"y": 1,
"x": -4.75,
"w": 2.75
},
"4,7",
{
"c": "#aaaaaa",
"w": 1.5
},
"4,9"
],
[
{
"ry": 1.75,
"y": 1.75,
"x": -4.25,
"c": "#cccccc"
},
"3,6",
"3,7",
"3,8",
"3,9"
]
]
}
}
8 changes: 8 additions & 0 deletions keyboards/primekb/prime_e/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

#define VIAL_KEYBOARD_UID {0xF3, 0xB8, 0xA3, 0x29, 0x37, 0x91, 0xFD, 0xA2}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 1 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 12 }
#define VIAL_TAP_DANCE_ENTRIES 4
Loading

0 comments on commit bdad48e

Please sign in to comment.