Added support for Keebio BDN9 and Cannon Keys db60 (#80)

* Add support for CannonKeys db60 and Keebio BDN9

* remove db60 config from bdn9

* Removed suggested changes

* updated a few keys for db60

* Removed erroneus db60.json and fixed rule.mk

* Set unlock combo and removed rgb features not on board.

* Added config for Keebio KBO-5000

Not totally sure if size of firmware is too close to the edge or how that impacts vial. 588 bytes free when building firmware.

* Added security keys to keebio bdn9

* added RGB_Matrix_Enable

* Update rules.mk for rev1 fw size limitations

* Moved bdn9 keymap to rev2/keymaps/vial as rev1 build has firmware size limitation
This commit is contained in:
ambustion 2021-12-21 21:58:37 -07:00 committed by GitHub
parent c60c34cffb
commit 1998b3e69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 875 additions and 0 deletions

View File

@ -0,0 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0x8A, 0xE8, 0x2F, 0x8B, 0xAE, 0x52, 0xFE, 0x8B}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 14 }

View File

@ -0,0 +1,63 @@
/*
Copyright 2012,2013 Jun Wako <wakojun@gmail.com>
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/>.
*/
#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.
enum layer_names {
_BASE,
_FN1,
_FN2,
_FN3
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT_all(
KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN1),
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(_FN1), KC_RCTL
),
[_FN1] = LAYOUT_all(
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, KC_DEL,
RGB_TOG, RGB_MOD, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
BL_BRTG, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
BL_INC, BL_DEC, BL_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, RESET
),
[_FN2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______
),
[_FN3] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______
)
};

View File

@ -0,0 +1,3 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
TAP_DANCE_ENABLE = yes

View File

@ -0,0 +1,130 @@
{
"name": "DB60",
"vendorId": "0x8A, 0xE8, 0x2F, 0x8B, 0xAE, 0x52, 0xFE, 0x8B",
"productId": "",
"lighting": "none",
"matrix": {
"rows": 5,
"cols": 15
},
"layouts": {
"keymap":[
[
"0,0",
"0,1",
"0,2",
"0,3",
"0,4",
"0,5",
"0,6",
"0,7",
"0,8",
"0,9",
"0,10",
"0,11",
"0,12",
{
"w": 2
},
"0,14"
],
[
{
"w": 1.5
},
"1,0",
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"1,10",
"1,11",
"1,12",
{
"w": 1.5
},
"1,14"
],
[
{
"w": 1.75
},
"2,0",
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9",
"2,10",
"2,11",
{
"w": 2.25
},
"2,14"
],
[
{
"w": 2.25
},
"3,0",
"3,2",
"3,3",
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
"3,9",
"3,10",
"3,11",
{
"w": 2.75
},
"3,12"
],
[
{
"w": 1.25
},
"4,0",
{
"w": 1.25
},
"4,1",
{
"w": 1.25
},
"4,2",
{
"w": 6.25
},
"4,6",
{
"w": 1.25
},
"4,10",
{
"w": 1.25
},
"4,11",
{
"w": 1.25
},
"4,12",
{
"w": 1.25
},
"4,14"
]
]
}
}

View File

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0x39, 0xA0, 0x58, 0xC7, 0x62, 0x1F, 0x33, 0x19}
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 2 }
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

View File

@ -0,0 +1,67 @@
#include QMK_KEYBOARD_H
enum encoder_names {
_LEFT,
_RIGHT,
_MIDDLE,
};
enum layer_names {
_ZERO,
_ONE,
_TWO,
_THREE
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_ZERO] = LAYOUT(
KC_MPLY, KC_HOME, KC_MUTE,
MO(1), KC_UP, RGB_MOD,
KC_LEFT, KC_DOWN, KC_RGHT
),
[_ONE] = LAYOUT(
RESET, BL_STEP, KC_STOP,
_______, KC_HOME, RGB_MOD,
KC_MPRV, KC_END , KC_MNXT
),
[_TWO] = LAYOUT(
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
),
[_THREE] = LAYOUT(
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
)
};
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == _LEFT) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
}
else if (index == _MIDDLE) {
if (clockwise) {
tap_code(KC_DOWN);
} else {
tap_code(KC_UP);
}
}
else if (index == _RIGHT) {
if (clockwise) {
tap_code(KC_PGDN);
} else {
tap_code(KC_PGUP);
}
}
return true;
}

View File

@ -0,0 +1,10 @@
LTO_ENABLE = yes
COMMAND_ENABLE = no
VIALRGB_ENABLE = yes
TAP_DANCE_ENABLE = yes
ENCODER_ENABLE = yes
VIAL_ENCODERS_ENABLE = yes
VIA_ENABLE = yes
VIAL_ENABLE = yes

View File

@ -0,0 +1,19 @@
{
"name": "BDN9",
"vendorId": "0xXXXX",
"productId": "0xXXXX",
"lighting": "vialrgb",
"matrix": {
"rows": 3,
"cols": 3
},
"layouts": {
"keymap":[
[{"y":0.25},"0,0\n\n\n\n\n\n\n\n\ne","1,0\n\n\n\n\n\n\n\n\ne","2,0\n\n\n\n\n\n\n\n\ne"],
["0,1\n\n\n\n\n\n\n\n\ne","1,1\n\n\n\n\n\n\n\n\ne","2,1\n\n\n\n\n\n\n\n\ne"],
[{"y":0.75},"0,0","0,1","0,2"],
["1,0","1,1","1,2"],
["2,0","2,1","2,2"]
]
}
}

View File

@ -0,0 +1,10 @@
#pragma once
#define VIAL_KEYBOARD_UID {0x3C, 0xB6, 0x24, 0x57, 0x7C, 0xDA, 0xEC, 0x4C}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 6 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 7 }
#define DYNAMIC_KEYMAP_LAYER_COUNT 2
#define VIAL_TAP_DANCE_ENTRIES 1
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION
#define NO_ACTION_ONESHOT

View File

@ -0,0 +1,59 @@
#include QMK_KEYBOARD_H
enum encoder_names {
LEFT_HALF_ENC = 0,
RIGHT_HALF_ENC1 = 2,
RIGHT_HALF_ENC2,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
KC_F13, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_BSPC, KC_INS, KC_PGUP,
KC_F14, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_PGDN,
KC_F15, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_HOME, KC_END,
KC_F16, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
KC_F17, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_all(
BL_STEP, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == LEFT_HALF_ENC) {
if (clockwise) {
tap_code(KC_PGDN);
} else {
tap_code(KC_PGUP);
}
} else if (index == RIGHT_HALF_ENC1) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
} else if (index == RIGHT_HALF_ENC2) {
if (clockwise) {
tap_code(KC_DOWN);
} else {
tap_code(KC_UP);
}
}
return true;
}

View File

@ -0,0 +1,8 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
VIAL_ENABLE = yes
VIAL_ENCODERS_ENABLE = yes
QMK_SETTINGS = no
COMBO_ENABLE = no
BACKLIGHT_ENABLE = no

View File

@ -0,0 +1,488 @@
{
"name": "KBO-5000 Rev. 1",
"productId": "0x126A",
"vendorId": "0xCB10",
"lighting": "qmk_backlight_rgblight",
"matrix": {
"rows": 10,
"cols": 12
},
"layouts": {
"labels": [
"Split Backspace",
"ISO Enter",
"1.75u Right Shift",
"Stepped Caps",
"Split Left Shift",
[
"Left Bottom Row",
"All",
"1.5-x-1.5-1.25-2.25",
"2.25-1.25 Space",
"2.75u Space",
"3u Space"
],
[
"Right Bottom Row",
"All",
"1.25-2.25-1.5-x-1.5",
"2.75u Space",
"1.25-2.25-1.25-1-1.25",
"3u Space"
]
],
"keymap": [
[
"0,0\n\n\n\n\n\n\n\n\ne",
{
"x": 0.5,
"c": "#777777"
},
"5,0",
{
"x": 1,
"c": "#cccccc"
},
"5,3",
"5,4",
"5,5",
"5,6",
{
"x": 0.5,
"c": "#aaaaaa"
},
"5,7",
"5,8",
{
"x": 1.5
},
"11,0",
"11,1",
{
"x": 0.5,
"c": "#cccccc"
},
"11,3",
"11,4",
"11,5",
"11,6",
{
"x": 1,
"c": "#aaaaaa"
},
"11,7",
"11,8",
"11,9",
{
"x": 3.5,
"c": "#cccccc"
},
"1,0\n\n\n\n\n\n\n\n\ne",
"2,0\n\n\n\n\n\n\n\n\ne"
],
[
"0,1\n\n\n\n\n\n\n\n\ne",
{
"x": 24.5
},
"1,1\n\n\n\n\n\n\n\n\ne",
"2,1\n\n\n\n\n\n\n\n\ne"
],
[
{
"y": -0.75,
"x": 1.5,
"c": "#aaaaaa"
},
"0,0",
{
"x": 0.5
},
"0,2",
{
"c": "#cccccc"
},
"0,3",
"0,4",
"0,5",
"0,6",
"0,7",
"0,8",
{
"x": 1.5
},
"6,0",
"6,1",
"6,2",
"6,3",
"6,4",
"6,5",
{
"c": "#aaaaaa",
"w": 2
},
"6,7\n\n\n0,0",
{
"x": 0.5
},
"6,8",
"6,9",
{
"x": 1
},
"6,6\n\n\n0,1",
"6,7\n\n\n0,1"
],
[
{
"x": 1.5
},
"1,0",
{
"x": 0.5,
"w": 1.5
},
"1,2",
{
"c": "#cccccc"
},
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
{
"x": 1.5
},
"7,0",
"7,1",
"7,2",
"7,3",
"7,4",
"7,5",
"7,6",
{
"w": 1.5
},
"7,7\n\n\n1,0",
{
"x": 0.5,
"c": "#aaaaaa"
},
"7,8",
"7,9",
{
"x": 1.75,
"c": "#777777",
"w": 1.25,
"h": 2,
"w2": 1.5,
"h2": 1,
"x2": -0.25
},
"8,7\n\n\n1,1"
],
[
{
"x": 1.5,
"c": "#aaaaaa"
},
"2,0",
{
"x": 0.5,
"w": 1.75
},
"2,2\n\n\n3,0",
{
"c": "#cccccc"
},
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
{
"x": 1.5
},
"8,0",
"8,1",
"8,2",
"8,3",
"8,4",
"8,5",
{
"c": "#777777",
"w": 2.25
},
"8,7\n\n\n1,0",
{
"x": 0.5,
"c": "#aaaaaa"
},
"8,8",
"8,9",
{
"x": 0.75,
"c": "#cccccc"
},
"8,6\n\n\n1,1"
],
[
{
"x": 1.5,
"c": "#aaaaaa"
},
"3,0",
{
"x": 0.5,
"w": 2.25
},
"3,2\n\n\n4,0",
{
"c": "#cccccc"
},
"3,4",
"3,5",
"3,6",
"3,7",
"3,8",
{
"x": 1.5
},
"9,0",
"9,1",
"9,2",
"9,3",
"9,4",
{
"c": "#aaaaaa",
"w": 1.75
},
"9,6\n\n\n2,0",
{
"x": 1.5
},
"9,8",
{
"x": 1.25,
"w": 2.75
},
"9,6\n\n\n2,1"
],
[
{
"x": 1.5
},
"4,0",
{
"x": 0.5,
"w": 1.25
},
"4,2\n\n\n5,0",
"4,3\n\n\n5,0",
{
"w": 1.25
},
"4,4\n\n\n5,0",
{
"w": 1.25
},
"4,5\n\n\n5,0",
"4,6\n\n\n5,0",
{
"w": 1.25
},
"4,7\n\n\n5,0",
{
"x": 1.5,
"w": 2.25
},
"10,1\n\n\n6,0",
{
"w": 1.25
},
"10,0\n\n\n6,0",
{
"w": 1.25
},
"10,2\n\n\n6,0",
"10,3\n\n\n6,0",
{
"w": 1.25
},
"10,6\n\n\n6,0",
{
"x": 0.5
},
"10,7",
"10,8",
"10,9"
],
[
{
"x": 3,
"w": 1.5
},
"4,2\n\n\n5,1",
{
"x": 0.5,
"w": 1.5
},
"4,4\n\n\n5,1",
{
"w": 1.25
},
"4,5\n\n\n5,1",
{
"w": 2.25
},
"4,7\n\n\n5,1",
{
"x": 1.5,
"w": 1.25
},
"10,0\n\n\n6,1",
{
"w": 2.25
},
"10,1\n\n\n6,1",
{
"w": 1.5
},
"10,2\n\n\n6,1",
{
"x": 0.5,
"w": 1.5
},
"10,6\n\n\n6,1"
],
[
{
"x": 3,
"w": 1.25
},
"4,2\n\n\n5,2",
"4,3\n\n\n5,2",
{
"w": 1.25
},
"4,4\n\n\n5,2",
{
"w": 2.25
},
"4,6\n\n\n5,2",
{
"w": 1.25
},
"4,7\n\n\n5,2",
{
"x": 1.5,
"w": 2.75
},
"10,1\n\n\n6,2",
{
"w": 1.25
},
"10,2\n\n\n6,2",
{
"w": 1.25
},
"10,3\n\n\n6,2",
{
"x": 0.5,
"w": 1.25
},
"10,6\n\n\n6,2"
],
[
{
"x": 3,
"w": 1.25
},
"4,2\n\n\n5,3",
{
"x": 0.5,
"w": 1.25
},
"4,4\n\n\n5,3",
{
"w": 1.25
},
"4,5\n\n\n5,3",
{
"w": 2.75
},
"4,7\n\n\n5,3",
{
"x": 1.5,
"w": 1.25
},
"10,0\n\n\n6,3",
{
"w": 2.25
},
"10,1\n\n\n6,3",
{
"w": 1.25
},
"10,2\n\n\n6,3",
"10,3\n\n\n6,3",
{
"w": 1.25
},
"10,6\n\n\n6,3"
],
[
{
"x": 3,
"w": 1.5
},
"4,2\n\n\n5,4",
"4,3\n\n\n5,4",
{
"w": 1.5
},
"4,4\n\n\n5,4",
{
"w": 3
},
"4,7\n\n\n5,4",
{
"x": 1.5,
"w": 3
},
"10,1\n\n\n6,4",
{
"w": 1.5
},
"10,2\n\n\n6,4",
"10,3\n\n\n6,4",
{
"w": 1.5
},
"10,6\n\n\n6,4"
],
[
{
"y": 0.5,
"x": 3,
"w": 1.25,
"w2": 1.75,
"l": true
},
"2,2\n\n\n3,1"
],
[
{
"x": 3,
"w": 1.25
},
"3,2\n\n\n4,1",
{
"c": "#cccccc"
},
"3,3\n\n\n4,1"
]
]
}
}