Add Vial setup for Reviung41 (#258)

* Add support for Reviung41

* Add readme file for Reviung41 Vial keymap

* Add comment to unlock key settings

* Update readme with link to KLE layout.

* Reduce firmware size when using a ProMicro

The following functions will be disabled to reduce firmware size when using a ProMicro MCU:

  * QMK Settings
  * Mouse Keys

If an alternate MCU is used and a [converter](https://docs.qmk.fm/#/feature_converters?id=supported-converters) is specified, these features will be enabled.

`readme.md` has been updated to note this.
This commit is contained in:
B. G. Kendall 2022-10-08 20:17:42 -04:00 committed by GitHub
parent ca7b29a063
commit d1f4a03f75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#pragma once
#define VIAL_KEYBOARD_UID {0x40, 0x4E, 0xA1, 0x89, 0x23, 0x14, 0x82, 0x88}
// Unlock with top left key (row 0, column 0) and
// top right key (row 3, column 5):
#define VIAL_UNLOCK_COMBO_ROWS { 0, 3 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 5 }

View file

@ -0,0 +1,31 @@
{
"keyboard": "reviung/reviung41",
"keymap": "default",
"layout": "LAYOUT_reviung41",
"layers": [
[
"KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_BSPC",
"KC_LCTL", "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", "RSFT_T(KC_ENT)",
"KC_LALT", "MO(1)", "KC_SPC", "MO(2)", "KC_RGUI"
],
[
"_______", "KC_EXLM", "KC_AT", "KC_HASH", "KC_DLR", "KC_PERC", "KC_CIRC", "KC_AMPR", "KC_ASTR", "KC_LPRN", "KC_RPRN", "KC_DEL",
"_______", "KC_UNDS", "KC_PLUS", "KC_LCBR", "KC_RCBR", "KC_PIPE", "KC_LEFT", "KC_DOWN", "KC_UP", "KC_RGHT", "KC_GRV", "KC_TILD",
"_______", "KC_ESC", "KC_LGUI", "KC_LALT", "KC_CAPS", "KC_DQUO", "KC_HOME", "KC_END", "KC_PGUP", "KC_PGDN", "KC_PSCR", "RSFT_T(KC_SPC)",
"_______", "_______", "KC_ENT", "MO(3)", "_______"
],
[
"_______", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_DEL",
"_______", "KC_MINS", "KC_EQL", "KC_LBRC", "KC_RBRC", "KC_BSLS", "KC_F1", "KC_F2", "KC_F3", "KC_F4", "KC_F5", "KC_F6",
"_______", "KC_ESC", "KC_RGUI", "KC_RALT", "KC_CAPS", "KC_QUOT", "KC_F7", "KC_F8", "KC_F9", "KC_F10", "KC_F11", "KC_F12",
"_______", "MO(3)", "KC_BSPC", "_______", "_______"
],
[
"RGB_VAI", "RGB_SAI", "RGB_HUI", "RGB_MOD", "XXXXXXX", "RGB_TOG", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX",
"RGB_VAD", "RGB_SAD", "RGB_HUD", "RGB_RMOD","XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX",
"XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "QK_BOOT", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX", "XXXXXXX",
"_______", "_______", "XXXXXXX", "_______", "_______"
]
]
}

View file

@ -0,0 +1,24 @@
# Vial Keymap for Reviung41
[Vial] settings for the [Reviung41] by [gtips].
The Keyboard Layout Editor source for the visual layout can be found [here][kle].
**NOTE**: The following functions will be disabled to reduce firmware size when using a ProMicro MCU:
* QMK Settings
* Mouse Keys
If an alternate MCU is used and a [converter] is specified, these features will be enabled.
For example:
```
qmk compile -kb reviung/reviung41 -km vial -e CONVERT_TO=kb2040
```
![Reviung41](https://github.com/gtips/reviung/blob/master/reviung41/image/REVIUNG41B-1.jpg?raw=true)
[Vial]: https://get.vial.today
[Reviung41]: https://github.com/gtips/reviung/tree/master/reviung41
[gtips]: https://reviung.com
[kle]: http://www.keyboard-layout-editor.com/#/gists/e7b3db0ccb704e9b38cefa526ca950b2
[converter]: https://docs.qmk.fm/#/feature_converters?id=supported-converters

View file

@ -0,0 +1,13 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
CONSOLE_ENABLE = no
LTO_ENABLE = yes
ifndef CONVERT_TO
# Disable QMK Settings when using a ProMicro to reduce size:
QMK_SETTINGS = no
else
# Enable Mouse Keys when when not using a ProMicro as there will be space:
MOUSEKEY_ENABLE = yes
endif

View file

@ -0,0 +1,40 @@
{
"name": "reviung41",
"vendorId": "0x7807",
"productId": "0xDCCB",
"lighting": "qmk_rgblight",
"matrix": { "rows": 7, "cols": 6 },
"layouts": {
"keymap": [
[{"y":4.2,"x":5.525,"w":2.25},"6,2"],
[{"r":2,"rx":10.5,"ry":4.5,"y":-1,"x":-1.25,"w":1.25},"6,4"],
[{"r":10,"rx":5.425,"ry":4.2,"x":-1.25,"w":1.25},"6,1"],
[{"rx":6.75,"ry":0,"y":0.75,"x":-3},"0,3"],
[{"y":-0.82,"x":-4},"0,2",{"x":1},"0,4"],
[{"y":-0.82,"x":-5},"0,1",{"x":3},"0,5"],
[{"y":-0.82,"x":-6},"0,0"],
[{"y":-0.54,"x":-3},"1,3"],
[{"y":-0.82,"x":-4},"1,2",{"x":1},"1,4"],
[{"y":-0.82,"x":-5},"1,1",{"x":3},"1,5"],
[{"y":-0.82,"x":-6},"1,0"],
[{"y":-0.54,"x":-3},"2,3"],
[{"y":-0.82,"x":-4},"2,2",{"x":1},"2,4"],
[{"y":-0.82,"x":-5},"2,1",{"x":3},"2,5"],
[{"rx":6.8,"y":3.29,"x":-6.05},"2,0"],
[{"r":-10,"rx":6.5,"y":0.75,"x":2},"3,2"],
[{"y":-0.82,"x":1},"3,1",{"x":1},"3,3"],
[{"y":-0.82},"3,0",{"x":3},"3,4"],
[{"y":-0.82,"x":5},"3,5"],
[{"y":-0.54,"x":2},"4,2"],
[{"y":-0.82,"x":1},"4,1",{"x":1},"4,3"],
[{"y":-0.82},"4,0",{"x":3},"4,4"],
[{"y":-0.82,"x":5},"4,5"],
[{"y":-0.54,"x":2},"5,2"],
[{"y":-0.82,"x":1},"5,1",{"x":1},"5,3"],
[{"y":-0.82},"5,0",{"x":3},"5,4"],
[{"y":-0.82,"x":5},"5,5"],
[{"rx":7.875,"ry":4.2,"w":1.25},"6,3"],
[{"r":-2,"rx":2.75,"ry":4.5,"y":-1,"w":1.25},"6,0"]
]
}
}