-
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 #546 from OTLabs/vial-1
Add Vial support for idobao/montex/v2
- Loading branch information
Showing
4 changed files
with
110 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,18 @@ | ||
// Copyright 2023 Oleg Titov <[email protected]> | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#define VIAL_KEYBOARD_UID {0x1A, 0xC2, 0xE7, 0x4C, 0xE4, 0x37, 0xF3, 0x6A} | ||
|
||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } | ||
#define VIAL_UNLOCK_COMBO_COLS { 0, 4 } | ||
|
||
// Enable all available RGB Matrix effects | ||
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
#define RGB_MATRIX_KEYPRESSES | ||
|
||
// Firmware size optimization | ||
// disable Lock Key support | ||
#undef LOCKING_SUPPORT_ENABLE | ||
#undef LOCKING_RESYNC_ENABLE |
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,54 @@ | ||
// Copyright 2022 IBNobody (@IBNobody) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
/* | ||
* ┌───┌───┬───┬───┬───┐ | ||
* │Esc│Tab│ F1│Cal│Bsp│ | ||
* ├───┼───┼───┼───┼───┤ | ||
* │Ctr│Num│ / │ * │ - │ | ||
* ├───┼───┼───┼───┼───┤ | ||
* │Gui│ 7 │ 8 │ 9 │ │ | ||
* ├───┼───┼───┼───┤ + │ | ||
* │Alt│ 4 │ 5 │ 6 │ │ | ||
* ├───┼───┼───┼───┼───┤ | ||
* │Shi│ 1 │ 2 │ 3 │ │ | ||
* ├───┼───┴───┼───┤Ent│ | ||
* │MO1│ 0 │ . │ │ | ||
* └───┴───────┴───┴───┘ | ||
*/ | ||
[0] = LAYOUT_numpad_6x5( | ||
QK_GESC, KC_TAB, KC_F1, KC_CALC, KC_BSPC, | ||
KC_LCTL, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, | ||
KC_LGUI, KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
KC_LALT, KC_P4, KC_P5, KC_P6, | ||
KC_LSFT, KC_P1, KC_P2, KC_P3, KC_PENT, | ||
MO(1), KC_P0, KC_PDOT | ||
), | ||
|
||
/* | ||
* ┌───┌───┐───┬───┬───┐ | ||
* │Rst│TOG│MOD│PSc│SLk│ | ||
* ├───┼───┼───┼───┼───┤ | ||
* │Hu+│ │Sp-│Sp+│Br-│ | ||
* ├───┼───┼───┼───┼───┤ | ||
* │Hu-│Hom│ ↑ │PgU│ │ | ||
* ├───┼───┼───┼───┤Br+│ | ||
* │St+│ ← │ │ → │ │ | ||
* ├───┼───┼───┼───┤───┤ | ||
* │St-│End│ ↓ │PgD│ │ | ||
* ├───┼───┴───┼───┤Ent│ | ||
* │mo1│Insert │Del│ │ | ||
* └───┴───────┴───┘───┘ | ||
*/ | ||
[1] = LAYOUT_numpad_6x5( | ||
QK_BOOT, RGB_TOG, RGB_MOD, KC_PSCR, KC_SCRL, | ||
RGB_HUI, XXXXXXX, RGB_SPD, RGB_SPI, RGB_VAD, | ||
RGB_HUD, KC_HOME, KC_UP, KC_PGUP, RGB_VAI, | ||
RGB_SAI, KC_LEFT, XXXXXXX, KC_RGHT, | ||
RGB_SAD, KC_END, KC_DOWN, KC_PGDN, KC_ENT, | ||
_______, KC_INS, KC_DEL | ||
) | ||
}; |
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,21 @@ | ||
VIA_ENABLE = yes # Enable VIA | ||
VIAL_ENABLE = yes # Enable VIAL | ||
VIALRGB_ENABLE = yes | ||
|
||
# Options to reduce firmware size: | ||
LTO_ENABLE = yes # make the compiler work harder | ||
|
||
# Vial optimization | ||
QMK_SETTINGS = no # enables the tab to change QMK settings from the GUI1 | ||
TAP_DANCE_ENABLE = yes | ||
COMBO_ENABLE = no | ||
|
||
# QMK optimization | ||
CONSOLE_ENABLE = no | ||
COMMAND_ENABLE = no | ||
MOUSEKEY_ENABLE = no | ||
#EXTRAKEY_ENABLE = no | ||
|
||
SPACE_CADET_ENABLE = no | ||
GRAVE_ESC_ENABLE = no | ||
MAGIC_ENABLE = no |
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,17 @@ | ||
{ | ||
"name": "IDOBAO Montex V2", | ||
"vendorId": "0x6964", | ||
"productId": "0x0227", | ||
"lighting": "vialrgb", | ||
"matrix": {"rows": 6, "cols": 5}, | ||
"layouts": { | ||
"keymap": [ | ||
[{"c": "#777777"}, "0,0", {"c": "#aaaaaa"}, "0,1", "0,2", "0,3", "0,4"], | ||
[{"y": 0.5, "c": "#cccccc"}, "1,0", "1,1", "1,2", "1,3", "1,4"], | ||
["2,0", "2,1", "2,2", "2,3", {"h": 2}, "2,4"], | ||
["3,0", "3,1", "3,2", "3,3"], | ||
["4,0", "4,1", "4,2", "4,3", {"c": "#777777", "h": 2}, "5,3"], | ||
[{"c": "#cccccc"}, "5,0", {"w": 2}, "5,1", "5,2"] | ||
] | ||
} | ||
} |