Add Redox Vial-enabled keymap (#163)
* Add Redox Vial support * Firmware size reduction
This commit is contained in:
parent
b85ba01a05
commit
6a97438a05
5 changed files with 280 additions and 0 deletions
44
keyboards/redox/keymaps/vial/config.h
Normal file
44
keyboards/redox/keymaps/vial/config.h
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
Copyright 2018-2022 Mattia Dal Ben <matthewdibi@gmail.com>, Ben Williams @rufusw
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* Use I2C or Serial, not both */
|
||||
#define USE_SERIAL
|
||||
// #define USE_I2C
|
||||
|
||||
/* Select hand configuration */
|
||||
#define MASTER_LEFT
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
//#undef RGBLED_NUM
|
||||
//#define RGBLIGHT_ANIMATIONS
|
||||
//#define RGBLED_NUM 14
|
||||
//#define RGBLIGHT_HUE_STEP 8
|
||||
//#define RGBLIGHT_SAT_STEP 8
|
||||
//#define RGBLIGHT_VAL_STEP 8
|
||||
|
||||
/* unique Vial keyboard ID and secure unlock combination Tab + Escape */
|
||||
#define VIAL_KEYBOARD_UID {0x01, 0x8F, 0xC6, 0xFF, 0xB4, 0x6A, 0x24, 0xF7}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS {1, 2}
|
||||
#define VIAL_UNLOCK_COMBO_COLS {0, 0}
|
||||
|
||||
/* For reducing RAM and EEPROM usage when using Vial*/
|
||||
//#define VIAL_TAP_DANCE_ENTRIES 4
|
||||
//#define VIAL_COMBO_ENTRIES 4
|
||||
//#define VIAL_KEY_OVERRIDE_ENTRIES 4
|
88
keyboards/redox/keymaps/vial/keymap.c
Normal file
88
keyboards/redox/keymaps/vial/keymap.c
Normal file
|
@ -0,0 +1,88 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
// entirely and just use numbers.
|
||||
#define _QWERTY 0
|
||||
#define _SYMB 1
|
||||
#define _NAV 2
|
||||
#define _ADJUST 3
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
SYMB,
|
||||
NAV,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
// Shortcut to make keymap more readable
|
||||
#define SYM_L MO(_SYMB)
|
||||
|
||||
#define KC_ALAS LALT_T(KC_PAST)
|
||||
#define KC_CTPL LCTL_T(KC_BSLS)
|
||||
|
||||
#define KC_NAGR LT(_NAV, KC_GRV)
|
||||
#define KC_NAMI LT(_NAV, KC_MINS)
|
||||
|
||||
#define KC_ADEN LT(_ADJUST, KC_END)
|
||||
#define KC_ADPU LT(_ADJUST, KC_PGUP)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
KC_NAGR ,KC_1 ,KC_2 ,KC_3 ,KC_4 ,KC_5 , KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_NAMI ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_TAB ,KC_Q ,KC_W ,KC_E ,KC_R ,KC_T ,SYM_L , SYM_L ,KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_EQL ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
KC_ESC ,KC_A ,KC_S ,KC_D ,KC_F ,KC_G ,KC_LBRC , KC_RBRC ,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_ADPU ,KC_PGDN , KC_HOME ,KC_ADEN ,KC_N ,KC_M ,KC_COMM ,KC_DOT ,KC_SLSH ,KC_RSFT ,
|
||||
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
|
||||
KC_LGUI ,KC_PPLS ,KC_PMNS ,KC_ALAS , KC_CTPL , KC_BSPC ,KC_DEL , KC_ENT ,KC_SPC , KC_RALT , KC_LEFT ,KC_DOWN ,KC_UP ,KC_RGHT
|
||||
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
[_SYMB] = LAYOUT(
|
||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
_______ ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______ ,KC_EXLM ,KC_AT ,KC_LCBR ,KC_RCBR ,KC_PIPE ,_______ , _______ ,KC_PSLS ,KC_P7 ,KC_P8 ,KC_P9 ,KC_PMNS ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______ ,KC_HASH ,KC_DLR ,KC_LBRC ,KC_RBRC ,KC_GRV ,_______ , _______ ,KC_PAST ,KC_P4 ,KC_P5 ,KC_P6 ,KC_PPLS ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
_______ ,KC_PERC ,KC_CIRC ,KC_LPRN ,KC_RPRN ,KC_TILD ,_______ ,_______ , _______ ,_______ ,XXXXXXX ,KC_P1 ,KC_P2 ,KC_P3 ,KC_PENT ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
|
||||
_______ ,_______ ,_______ ,_______ , _______ , _______ ,_______ , _______ ,_______ , KC_P0 , KC_P0 ,KC_PDOT ,KC_PENT ,XXXXXXX
|
||||
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
[_NAV] = LAYOUT(
|
||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
_______ ,_______ ,_______ ,_______ ,_______ ,_______ , _______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,XXXXXXX ,KC_MS_U ,XXXXXXX ,KC_WH_U ,XXXXXXX ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,KC_MS_L ,KC_MS_D ,KC_MS_R ,KC_WH_D ,XXXXXXX ,_______ , _______ ,KC_LEFT ,KC_DOWN ,KC_UP ,KC_RIGHT,XXXXXXX ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,_______ , _______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , KC_BTN1 , KC_BTN2 ,_______ , _______ ,_______ , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
|
||||
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
|
||||
),
|
||||
|
||||
[_ADJUST] = LAYOUT(
|
||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||
XXXXXXX ,KC_F1 ,KC_F2 ,KC_F3 ,KC_F4 ,KC_F5 , KC_F6 ,KC_F7 ,KC_F8 ,KC_F9 ,KC_F10 ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,RESET ,RGB_M_P ,RGB_TOG ,RGB_MOD ,RGB_HUD ,RGB_HUI , RGB_SAD ,RGB_SAI ,RGB_VAD ,RGB_VAI ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,_______ ,XXXXXXX , XXXXXXX ,_______ ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX ,
|
||||
//├────────┼────────┼────────┼────────┼────┬───┴────┬───┼────────┼────────┤ ├────────┼────────┼───┬────┴───┬────┼────────┼────────┼────────┼────────┤
|
||||
XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX ,XXXXXXX , XXXXXXX , XXXXXXX ,XXXXXXX ,XXXXXXX ,XXXXXXX
|
||||
//└────────┴────────┴────────┴────────┘ └────────┘ └────────┴────────┘ └────────┴────────┘ └────────┘ └────────┴────────┴────────┴────────┘
|
||||
)
|
||||
};
|
13
keyboards/redox/keymaps/vial/readme.md
Normal file
13
keyboards/redox/keymaps/vial/readme.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Default Redox keymap with Vial support
|
||||
|
||||
![Imgur](https://imgur.com/msHriYY.jpg)
|
||||
|
||||
This is the default Redox keymap with Vial enabled.
|
||||
|
||||
I have disabled several features to reduce the firmware size, including mousekey and rgblight - see rules.mk
|
||||
|
||||
I suggest reading the following links for advice on reducing firmware size.
|
||||
|
||||
https://docs.qmk.fm/#/squeezing_avr?id=squeezing-the-most-out-of-avr
|
||||
|
||||
https://get.vial.today/docs/firmware-size.html
|
15
keyboards/redox/keymaps/vial/rules.mk
Normal file
15
keyboards/redox/keymaps/vial/rules.mk
Normal file
|
@ -0,0 +1,15 @@
|
|||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
LTO_ENABLE = yes
|
||||
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
|
||||
UNICODE_ENABLE = no
|
||||
OLED_DRIVER_ENABLE = no
|
||||
|
||||
# must be disabled for VIA support
|
||||
LEADER_ENABLE = no
|
||||
MIDI_ENABLE = no
|
||||
BLUETOOTH_ENABLE = no
|
120
keyboards/redox/keymaps/vial/vial.json
Normal file
120
keyboards/redox/keymaps/vial/vial.json
Normal file
|
@ -0,0 +1,120 @@
|
|||
{
|
||||
"name": "Redox",
|
||||
"vendorId": "0x4D44",
|
||||
"productId": "0x5244",
|
||||
"lighting": "qmk_rgblight",
|
||||
"matrix": { "rows": 10, "cols": 7 },
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[{ "x": 3.5 }, "0,3", { "x": 10.5 }, "5,3"],
|
||||
[
|
||||
{ "y": -0.875, "x": 2.5 },
|
||||
"0,2",
|
||||
{ "x": 1 },
|
||||
"0,4",
|
||||
{ "x": 8.5 },
|
||||
"5,4",
|
||||
{ "x": 1 },
|
||||
"5,2"
|
||||
],
|
||||
[{ "y": -0.875, "x": 5.5 }, "0,5", { "x": 6.5 }, "5,5"],
|
||||
[
|
||||
{ "y": -0.875, "c": "#777777", "w": 1.5 },
|
||||
"0,0",
|
||||
{ "c": "#cccccc" },
|
||||
"0,1",
|
||||
{ "x": 14.5 },
|
||||
"5,1",
|
||||
{ "c": "#aaaaaa", "w": 1.5 },
|
||||
"5,0"
|
||||
],
|
||||
[{ "y": -0.625, "x": 6.5, "c": "#cccccc" }, "0,6", { "x": 4.5 }, "5,6"],
|
||||
[{ "y": -0.75, "x": 3.5 }, "1,3", { "x": 10.5 }, "6,3"],
|
||||
[
|
||||
{ "y": -0.875, "x": 2.5 },
|
||||
"1,2",
|
||||
{ "x": 1 },
|
||||
"1,4",
|
||||
{ "x": 8.5 },
|
||||
"6,4",
|
||||
{ "x": 1 },
|
||||
"6,2"
|
||||
],
|
||||
[{ "y": -0.875, "x": 5.5 }, "1,5", { "x": 6.5 }, "6,5"],
|
||||
[
|
||||
{ "y": -0.875, "c": "#aaaaaa", "w": 1.5 },
|
||||
"1,0",
|
||||
{ "c": "#cccccc" },
|
||||
"1,1",
|
||||
{ "x": 14.5 },
|
||||
"6,1",
|
||||
{ "c": "#aaaaaa", "w": 1.5 },
|
||||
"6,0"
|
||||
],
|
||||
[
|
||||
{ "y": -0.625, "x": 6.5, "c": "#cccccc", "h": 1.5 },
|
||||
"1,6",
|
||||
{ "x": 4.5, "h": 1.5 },
|
||||
"6,6"
|
||||
],
|
||||
[{ "y": -0.75, "x": 3.5 }, "2,3", { "x": 10.5 }, "7,3"],
|
||||
[
|
||||
{ "y": -0.875, "x": 2.5 },
|
||||
"2,2",
|
||||
{ "x": 1 },
|
||||
"2,4",
|
||||
{ "x": 8.5 },
|
||||
"7,4",
|
||||
{ "x": 1 },
|
||||
"7,2"
|
||||
],
|
||||
[{ "y": -0.875, "x": 5.5 }, "2,5", { "x": 6.5 }, "7,5"],
|
||||
[
|
||||
{ "y": -0.875, "c": "#aaaaaa", "w": 1.5 },
|
||||
"2,0",
|
||||
{ "c": "#cccccc" },
|
||||
"2,1",
|
||||
{ "x": 14.5 },
|
||||
"7,1",
|
||||
{ "c": "#aaaaaa", "w": 1.5 },
|
||||
"7,0"
|
||||
],
|
||||
[{ "y": -0.375, "x": 3.5, "c": "#cccccc" }, "3,3", { "x": 10.5 }, "8,3"],
|
||||
[
|
||||
{ "y": -0.875, "x": 2.5 },
|
||||
"3,2",
|
||||
{ "x": 1 },
|
||||
"3,4",
|
||||
{ "x": 8.5 },
|
||||
"8,4",
|
||||
{ "x": 1 },
|
||||
"8,2"
|
||||
],
|
||||
[{ "y": -0.875, "x": 5.5 }, "3,5", { "x": 6.5 }, "8,5"],
|
||||
[
|
||||
{ "y": -0.875, "c": "#aaaaaa", "w": 1.5 },
|
||||
"3,0",
|
||||
{ "c": "#cccccc" },
|
||||
"3,1",
|
||||
{ "x": 14.5 },
|
||||
"8,1",
|
||||
{ "c": "#aaaaaa", "w": 1.5 },
|
||||
"8,0"
|
||||
],
|
||||
[{ "y": -0.375, "x": 3.5 }, "4,3", { "x": 10.5 }, "9,3"],
|
||||
[{ "y": -0.875, "x": 2.5 }, "4,2", { "x": 12.5 }, "9,2"],
|
||||
[{ "y": -0.75, "x": 0.5 }, "4,0", "4,1", { "x": 14.5 }, "9,1", "9,0"],
|
||||
[{ "y": -0.745, "x": 13.5 }, "9,4"],
|
||||
[{ "y": -0.75, "x": 5.25 }, "4,4"],
|
||||
[{ "r": 30, "rx": 6.5, "ry": 4.25, "y": -1, "x": 1 }, "2,6", "3,6"],
|
||||
[
|
||||
{ "x": 1, "c": "#777777", "h": 2 },
|
||||
"4,5",
|
||||
{ "c": "#aaaaaa", "h": 2 },
|
||||
"4,6"
|
||||
],
|
||||
[{ "r": -30, "rx": 13, "y": -1, "x": -3 }, "8,6", "7,6"],
|
||||
[{ "x": -3, "h": 2 }, "9,6", { "c": "#777777", "h": 2 }, "9,5"]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue