Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vial support for idobao/montex/v2 #546

Merged
merged 5 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2023 Oleg Titov <oleg.titov@gmail.com>
// 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 }
54 changes: 54 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/keymap.c
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
)
};
8 changes: 8 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VIA_ENABLE = yes # Enable VIA
VIAL_ENABLE = yes # Enable VIAL

# 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 GUI1~# enables the tab to change QMK settings from the GUI1~ # enables the tab to change QMK settings from the GUI
TAP_DANCE_ENABLE = yes
COMBO_ENABLE = no
64 changes: 64 additions & 0 deletions keyboards/idobao/montex/v2/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "IDOBAO Montex V2",
"vendorId": "0x6964",
"productId": "0x0227",
"lighting": {
"extends": "qmk_rgblight",
"supportedLightingValues": [128, 129, 131],
"underglowEffects": [
["00. None", 0],
["01. Solid Color", 1],
["02. Alphas Mods", 1],
["03. Gradient U&D", 1],
["04. Gradient L&R", 1],
["05. Breathing", 1],
["06. Cycle Solid Color", 1],
["07. Cycle LR", 1],
["08. Cycle TB", 1],
["09. Rainbow Beacon", 1],
["10. Spinning Pinwheel", 1],
["11. Spinning Spiral", 1],
["12. Cycle Pinwheel", 1],
["13. Raindrops", 1],
["14. Jellybean Raindrops", 1],
["15. Hue Breathing", 1],
["16. Hue Pendulum", 1],
["17. Hue Wave", 1],
["18. Pixel Rain", 1],
["19. Pixel Flow", 1],
["20. Reactive Simple", 1],
["21. Reactive Solid", 1],
["22. Reactive Wide", 1],
["23. Reactive Multi-wide", 1],
["24. Splash", 1],
["25. Solid Splash", 1]
]
},
"customKeycodes": [
{"name": "", "title": "{undefined}", "shortName": ""},
{"name": "", "title": "{undefined}", "shortName": ""},
{"name": "Toggle Per-key", "title": "RGB_TPK", "shortName": "RGB T/PK"},
{"name": "Toggle Under Glow", "title": "RGB_TUG", "shortName": "RGB T/UG"},
{"name": "", "title": "{undefined}", "shortName": ""},
{"name": "", "title": "{undefined}", "shortName": ""},
{"name": "", "title": "{undefined}", "shortName": ""},
{"name": "", "title": "{undefined}", "shortName": ""},
{
"name": "Toggle NumLk LED",
"title": "Toggle NumLock LED Feature",
"shortName": "NumLk LED"
},
{"name": "Version", "title": "Type Firmware Version", "shortName": "Ver?"}
],
OTLabs marked this conversation as resolved.
Show resolved Hide resolved
"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"]
]
}
}