-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from pies-n-loaf/fine40
Add vial support for fine40/mochi40
- Loading branch information
Showing
4 changed files
with
258 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {0x29, 0x7D, 0x3C, 0x47, 0x6B, 0xFE, 0xA6, 0x3E} | ||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 1 } | ||
#define VIAL_UNLOCK_COMBO_COLS { 0, 0 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright 2022 Aidan Smith (@Aidan-OS) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#include QMK_KEYBOARD_H | ||
|
||
enum keyboard_layers { | ||
_MAIN, | ||
_RIGHT, | ||
_LEFT, | ||
_TAB, | ||
}; | ||
|
||
#define LT3_TAB LT(_TAB, KC_TAB) | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[_MAIN] = LAYOUT_2u_single_space( | ||
KC_ESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC , | ||
LT3_TAB , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN , KC_QUOT , | ||
KC_LSFT , KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH , KC_ENT , | ||
KC_LCTL , KC_RALT , KC_LGUI , KC_BSLS , MO(_LEFT) , KC_SPC , MO(_RIGHT) , KC_LEFT , KC_DOWN , KC_UP , KC_RIGHT , KC_MPLY | ||
), | ||
|
||
[_LEFT] = LAYOUT_2u_single_space( /* LEFT */ | ||
KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_DELETE , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_UNDERSCORE , KC_PLUS , KC_LEFT_CURLY_BRACE , KC_RIGHT_CURLY_BRACE , _______ , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_HOME , KC_PGDN , KC_PGUP , KC_END , _______ | ||
), | ||
|
||
[_RIGHT] = LAYOUT_2u_single_space( /* RIGHT */ | ||
KC_TILDE , KC_EXCLAIM , KC_AT , KC_HASH , KC_DOLLAR , KC_PERCENT , KC_CIRCUMFLEX , KC_AMPERSAND , KC_ASTERISK , KC_LEFT_PAREN , KC_RIGHT_PAREN , KC_DELETE , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_MINS , KC_EQL , KC_LBRC , KC_RBRC , _______ , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_LT , KC_GT , _______ , _______ , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_MUTE , KC_VOLD , KC_VOLU , KC_MPLY , _______ | ||
), | ||
|
||
[_TAB] = LAYOUT_2u_single_space( /* Tab */ | ||
KC_ESC , QK_BOOT, _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , | ||
_______ , KC_F11 , KC_F12 , KC_F13 , KC_F14 , KC_F15 , KC_F16 , KC_F17 , KC_F18 , KC_F19 , KC_F20 , _______ , | ||
_______ , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , _______ , | ||
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_MS_L , KC_MS_D , KC_MS_U , KC_MS_R , _______ | ||
), | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[_MAIN] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
[_LEFT] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
[_RIGHT] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
[_TAB] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
VIA_ENABLE = yes | ||
VIAL_ENABLE = yes | ||
ENCODER_MAP_ENABLE = yes | ||
|
||
# Options to reduce firmware size: | ||
LTO_ENABLE = yes # make the compiler work harder | ||
QMK_SETTINGS = no # enables the tab to change QMK settings from the GUI |
192 changes: 192 additions & 0 deletions
192
keyboards/aidansmithdotdev/fine40/keymaps/vial/vial.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
{ | ||
"name": "fine!40", | ||
"vendorId": "0xA059", | ||
"productId": "0x4564", | ||
"matrix": { | ||
"rows": 8, | ||
"cols": 6 | ||
}, | ||
"layouts": { | ||
"labels": [ | ||
["Bottom Row", "Single 2u", "Split 2u", "Split 2.25u", "Single 7u"] | ||
], | ||
"keymap": [ | ||
[ | ||
{ | ||
"c": "#777777" | ||
}, | ||
"0,0", | ||
{ | ||
"c": "#cccccc" | ||
}, | ||
"0,1", | ||
"0,2", | ||
"0,3", | ||
"0,4", | ||
"0,5", | ||
"4,5", | ||
"4,4", | ||
"4,3", | ||
"4,2", | ||
"4,1", | ||
{ | ||
"c": "#aaaaaa", | ||
"w": 1.5 | ||
}, | ||
"4,0" | ||
], | ||
[ | ||
{ | ||
"w": 1.25 | ||
}, | ||
"1,0", | ||
{ | ||
"c": "#cccccc" | ||
}, | ||
"1,1", | ||
"1,2", | ||
"1,3", | ||
"1,4", | ||
"1,5", | ||
"5,5", | ||
"5,4", | ||
"5,3", | ||
"5,2", | ||
"5,1", | ||
{ | ||
"w": 1.25 | ||
}, | ||
"5,0" | ||
], | ||
[ | ||
{ | ||
"c": "#aaaaaa", | ||
"w": 1.5 | ||
}, | ||
"2,0", | ||
{ | ||
"c": "#cccccc" | ||
}, | ||
"2,1", | ||
"2,2", | ||
"2,3", | ||
"2,4", | ||
"2,5", | ||
"6,5", | ||
"6,4", | ||
"6,3", | ||
"6,2", | ||
"6,1", | ||
{ | ||
"c": "#777777" | ||
}, | ||
"6,0" | ||
], | ||
[ | ||
{ | ||
"c": "#aaaaaa" | ||
}, | ||
"3,0\n\n\n0,0", | ||
"3,1\n\n\n0,0", | ||
"3,2\n\n\n0,0", | ||
"3,3\n\n\n0,0", | ||
{ | ||
"w": 1.25 | ||
}, | ||
"3,4\n\n\n0,0", | ||
{ | ||
"c": "#777777", | ||
"w": 2 | ||
}, | ||
"3,5\n\n\n0,0", | ||
{ | ||
"c": "#aaaaaa", | ||
"w": 1.25 | ||
}, | ||
"7,5\n\n\n0,0", | ||
"7,4\n\n\n0,0", | ||
"7,3\n\n\n0,0", | ||
"7,2\n\n\n0,0", | ||
"7,1\n\n\n0,0", | ||
{ | ||
"x": 0.5, | ||
"c": "#cccccc" | ||
}, | ||
"7,0" | ||
], | ||
[ | ||
{ | ||
"y": 0.5, | ||
"c": "#aaaaaa" | ||
}, | ||
"3,0\n\n\n0,1", | ||
"3,1\n\n\n0,1", | ||
"3,2\n\n\n0,1", | ||
{ | ||
"w": 1.25 | ||
}, | ||
"3,3\n\n\n0,1", | ||
{ | ||
"c": "#777777", | ||
"w": 2 | ||
}, | ||
"3,4\n\n\n0,1", | ||
{ | ||
"w": 2 | ||
}, | ||
"7,5\n\n\n0,1", | ||
{ | ||
"c": "#aaaaaa", | ||
"w": 1.25 | ||
}, | ||
"7,4\n\n\n0,1", | ||
"7,3\n\n\n0,1", | ||
"7,2\n\n\n0,1", | ||
"7,1\n\n\n0,1" | ||
], | ||
[ | ||
"3,0\n\n\n0,2", | ||
"3,1\n\n\n0,2", | ||
"3,2\n\n\n0,2", | ||
"3,3\n\n\n0,2", | ||
{ | ||
"c": "#777777", | ||
"w": 2.25 | ||
}, | ||
"3,4\n\n\n0,2", | ||
{ | ||
"w": 2.25 | ||
}, | ||
"7,5\n\n\n0,2", | ||
{ | ||
"c": "#aaaaaa" | ||
}, | ||
"7,4\n\n\n0,2", | ||
"7,3\n\n\n0,2", | ||
"7,2\n\n\n0,2", | ||
"7,1\n\n\n0,2" | ||
], | ||
[ | ||
{ | ||
"w": 1.25 | ||
}, | ||
"3,0\n\n\n0,3", | ||
{ | ||
"w": 1.25 | ||
}, | ||
"3,1\n\n\n0,3", | ||
{ | ||
"c": "#777777", | ||
"w": 7 | ||
}, | ||
"3,5\n\n\n0,3", | ||
{ | ||
"c": "#aaaaaa" | ||
}, | ||
"7,3\n\n\n0,3", | ||
"7,2\n\n\n0,3", | ||
"7,1\n\n\n0,3" | ||
] | ||
] | ||
} | ||
} |