[Keyboard] Add KBO-5000 keyboard (#9381)

* Initial fork of Sinc

* Setup keymaps, layouts, and encoders

* Add ANSI configurator layout

* Add ISO layout for configurator

* Add all layout option for configurator

* Fix spacing

* Remove extra line

* Remove unneeded ifdef
This commit is contained in:
Danny 2020-06-23 05:05:44 -04:00 committed by GitHub
parent aea2d6845a
commit 3028662fa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 775 additions and 0 deletions

View File

@ -0,0 +1,21 @@
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
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
#include "config_common.h"

View File

@ -0,0 +1,339 @@
{
"keyboard_name": "KBO-5000",
"url": "https://keeb.io",
"maintainer": "nooges",
"width": 20.5,
"height": 6.25,
"layouts": {
"LAYOUT_ansi": {
"layout": [
{"label":"Esc", "x":0, "y":0},
{"label":"F1", "x":2, "y":0},
{"label":"F2", "x":3, "y":0},
{"label":"F3", "x":4, "y":0},
{"label":"F4", "x":5, "y":0},
{"label":"F5", "x":6.5, "y":0},
{"label":"F6", "x":7.5, "y":0},
{"label":"F7", "x":10, "y":0},
{"label":"F8", "x":11, "y":0},
{"label":"F9", "x":12.5, "y":0},
{"label":"F10", "x":13.5, "y":0},
{"label":"F11", "x":14.5, "y":0},
{"label":"F12", "x":15.5, "y":0},
{"label":"Prt Sc", "x":17.5, "y":0},
{"label":"Scr Lk", "x":18.5, "y":0},
{"label":"Pause", "x":19.5, "y":0},
{"label":"F13", "x":0, "y":1.25},
{"label":"~", "x":1.5, "y":1.25},
{"label":"!", "x":2.5, "y":1.25},
{"label":"@", "x":3.5, "y":1.25},
{"label":"#", "x":4.5, "y":1.25},
{"label":"$", "x":5.5, "y":1.25},
{"label":"%", "x":6.5, "y":1.25},
{"label":"^", "x":7.5, "y":1.25},
{"label":"&", "x":10, "y":1.25},
{"label":"*", "x":11, "y":1.25},
{"label":"(", "x":12, "y":1.25},
{"label":")", "x":13, "y":1.25},
{"label":"_", "x":14, "y":1.25},
{"label":"+", "x":15, "y":1.25},
{"label":"Del", "x":16, "y":1.25},
{"label":"Bksp", "x":17, "y":1.25},
{"label":"Ins", "x":18.5, "y":1.25},
{"label":"Pg Up", "x":19.5, "y":1.25},
{"label":"F14", "x":0, "y":2.25},
{"label":"Tab", "x":1.5, "y":2.25, "w":1.5},
{"label":"Q", "x":3, "y":2.25},
{"label":"W", "x":4, "y":2.25},
{"label":"E", "x":5, "y":2.25},
{"label":"R", "x":6, "y":2.25},
{"label":"T", "x":7, "y":2.25},
{"label":"Y", "x":9.5, "y":2.25},
{"label":"U", "x":10.5, "y":2.25},
{"label":"I", "x":11.5, "y":2.25},
{"label":"O", "x":12.5, "y":2.25},
{"label":"P", "x":13.5, "y":2.25},
{"label":"{", "x":14.5, "y":2.25},
{"label":"}", "x":15.5, "y":2.25},
{"label":"|", "x":16.5, "y":2.25, "w":1.5},
{"label":"Del", "x":18.5, "y":2.25},
{"label":"Pg Dn", "x":19.5, "y":2.25},
{"label":"F15", "x":0, "y":3.25},
{"label":"Caps Lock", "x":1.5, "y":3.25, "w":1.75},
{"label":"A", "x":3.25, "y":3.25},
{"label":"S", "x":4.25, "y":3.25},
{"label":"D", "x":5.25, "y":3.25},
{"label":"F", "x":6.25, "y":3.25},
{"label":"G", "x":7.25, "y":3.25},
{"label":"H", "x":9.75, "y":3.25},
{"label":"J", "x":10.75, "y":3.25},
{"label":"K", "x":11.75, "y":3.25},
{"label":"L", "x":12.75, "y":3.25},
{"label":":", "x":13.75, "y":3.25},
{"label":"\"", "x":14.75, "y":3.25},
{"label":"Enter", "x":15.75, "y":3.25, "w":2.25},
{"label":"Home", "x":18.5, "y":3.25},
{"label":"End", "x":19.5, "y":3.25},
{"label":"F16", "x":0, "y":4.25},
{"label":"Shift", "x":1.5, "y":4.25, "w":2.25},
{"label":"Z", "x":3.75, "y":4.25},
{"label":"X", "x":4.75, "y":4.25},
{"label":"C", "x":5.75, "y":4.25},
{"label":"V", "x":6.75, "y":4.25},
{"label":"B", "x":7.75, "y":4.25},
{"label":"N", "x":10.25, "y":4.25},
{"label":"M", "x":11.25, "y":4.25},
{"label":"<", "x":12.25, "y":4.25},
{"label":">", "x":13.25, "y":4.25},
{"label":"?", "x":14.25, "y":4.25},
{"label":"Shift", "x":15.25, "y":4.25, "w":1.75},
{"label":"Up", "x":18.5, "y":4.25},
{"label":"F17", "x":0, "y":5.25},
{"label":"Ctrl", "x":1.5, "y":5.25, "w":1.25},
{"label":"Win", "x":2.75, "y":5.25},
{"label":"Alt", "x":3.75, "y":5.25, "w":1.25},
{"label":"Fn", "x":5, "y":5.25, "w":1.25},
{"label":"Space", "x":6.25, "y":5.25},
{"label":"Fn", "x":7.25, "y":5.25, "w":1.25},
{"label":"Fn", "x":10, "y":5.25, "w":1.25},
{"label":"Space", "x":11.25, "y":5.25, "w":2.25},
{"label":"Alt", "x":13.5, "y":5.25, "w":1.25},
{"label":"Win", "x":14.75, "y":5.25},
{"label":"Ctrl", "x":15.75, "y":5.25, "w":1.25},
{"label":"Left", "x":17.5, "y":5.25},
{"label":"Down", "x":18.5, "y":5.25},
{"label":"Right", "x":19.5, "y":5.25}
]
},
"LAYOUT_iso": {
"layout": [
{"label":"Esc", "x":0, "y":0},
{"label":"F1", "x":2, "y":0},
{"label":"F2", "x":3, "y":0},
{"label":"F3", "x":4, "y":0},
{"label":"F4", "x":5, "y":0},
{"label":"F5", "x":6.5, "y":0},
{"label":"F6", "x":7.5, "y":0},
{"label":"F7", "x":10, "y":0},
{"label":"F8", "x":11, "y":0},
{"label":"F9", "x":12.5, "y":0},
{"label":"F10", "x":13.5, "y":0},
{"label":"F11", "x":14.5, "y":0},
{"label":"F12", "x":15.5, "y":0},
{"label":"Prt Sc", "x":17.5, "y":0},
{"label":"Scr Lk", "x":18.5, "y":0},
{"label":"Pause", "x":19.5, "y":0},
{"label":"F13", "x":0, "y":1.25},
{"label":"~", "x":1.5, "y":1.25},
{"label":"!", "x":2.5, "y":1.25},
{"label":"@", "x":3.5, "y":1.25},
{"label":"#", "x":4.5, "y":1.25},
{"label":"$", "x":5.5, "y":1.25},
{"label":"%", "x":6.5, "y":1.25},
{"label":"^", "x":7.5, "y":1.25},
{"label":"&", "x":10, "y":1.25},
{"label":"*", "x":11, "y":1.25},
{"label":"(", "x":12, "y":1.25},
{"label":")", "x":13, "y":1.25},
{"label":"_", "x":14, "y":1.25},
{"label":"+", "x":15, "y":1.25},
{"label":"Del", "x":16, "y":1.25},
{"label":"Bksp", "x":17, "y":1.25},
{"label":"Ins", "x":18.5, "y":1.25},
{"label":"Pg Up", "x":19.5, "y":1.25},
{"label":"F14", "x":0, "y":2.25},
{"label":"Tab", "x":1.5, "y":2.25, "w":1.5},
{"label":"Q", "x":3, "y":2.25},
{"label":"W", "x":4, "y":2.25},
{"label":"E", "x":5, "y":2.25},
{"label":"R", "x":6, "y":2.25},
{"label":"T", "x":7, "y":2.25},
{"label":"Y", "x":9.5, "y":2.25},
{"label":"U", "x":10.5, "y":2.25},
{"label":"I", "x":11.5, "y":2.25},
{"label":"O", "x":12.5, "y":2.25},
{"label":"P", "x":13.5, "y":2.25},
{"label":"{", "x":14.5, "y":2.25},
{"label":"}", "x":15.5, "y":2.25},
{"label":"Del", "x":18.5, "y":2.25},
{"label":"Pg Dn", "x":19.5, "y":2.25},
{"label":"F15", "x":0, "y":3.25},
{"label":"Caps Lock", "x":1.5, "y":3.25, "w":1.75},
{"label":"A", "x":3.25, "y":3.25},
{"label":"S", "x":4.25, "y":3.25},
{"label":"D", "x":5.25, "y":3.25},
{"label":"F", "x":6.25, "y":3.25},
{"label":"G", "x":7.25, "y":3.25},
{"label":"H", "x":9.75, "y":3.25},
{"label":"J", "x":10.75, "y":3.25},
{"label":"K", "x":11.75, "y":3.25},
{"label":"L", "x":12.75, "y":3.25},
{"label":":", "x":13.75, "y":3.25},
{"label":"\"", "x":14.75, "y":3.25},
{"label":"#", "x":15.75, "y":3.25},
{"label":"Enter", "x":16.75, "y":2.25, "w":1.25, "h":2},
{"label":"Home", "x":18.5, "y":3.25},
{"label":"End", "x":19.5, "y":3.25},
{"label":"F16", "x":0, "y":4.25},
{"label":"Shift", "x":1.5, "y":4.25, "w":1.25},
{"label":"\\", "x":2.75, "y":4.25},
{"label":"Z", "x":3.75, "y":4.25},
{"label":"X", "x":4.75, "y":4.25},
{"label":"C", "x":5.75, "y":4.25},
{"label":"V", "x":6.75, "y":4.25},
{"label":"B", "x":7.75, "y":4.25},
{"label":"N", "x":10.25, "y":4.25},
{"label":"M", "x":11.25, "y":4.25},
{"label":"<", "x":12.25, "y":4.25},
{"label":">", "x":13.25, "y":4.25},
{"label":"?", "x":14.25, "y":4.25},
{"label":"Shift", "x":15.25, "y":4.25, "w":1.75},
{"label":"Up", "x":18.5, "y":4.25},
{"label":"F17", "x":0, "y":5.25},
{"label":"Ctrl", "x":1.5, "y":5.25, "w":1.25},
{"label":"Win", "x":2.75, "y":5.25},
{"label":"Alt", "x":3.75, "y":5.25, "w":1.25},
{"label":"Fn", "x":5, "y":5.25, "w":1.25},
{"label":"Space", "x":6.25, "y":5.25},
{"label":"Fn", "x":7.25, "y":5.25, "w":1.25},
{"label":"Fn", "x":10, "y":5.25, "w":1.25},
{"label":"Space", "x":11.25, "y":5.25, "w":2.25},
{"label":"Alt", "x":13.5, "y":5.25, "w":1.25},
{"label":"Win", "x":14.75, "y":5.25},
{"label":"Ctrl", "x":15.75, "y":5.25, "w":1.25},
{"label":"Left", "x":17.5, "y":5.25},
{"label":"Down", "x":18.5, "y":5.25},
{"label":"Right", "x":19.5, "y":5.25}
]
},
"LAYOUT_all": {
"layout": [
{"label":"Esc", "x":0, "y":0},
{"label":"F1", "x":2, "y":0},
{"label":"F2", "x":3, "y":0},
{"label":"F3", "x":4, "y":0},
{"label":"F4", "x":5, "y":0},
{"label":"F5", "x":6.5, "y":0},
{"label":"F6", "x":7.5, "y":0},
{"label":"F7", "x":10, "y":0},
{"label":"F8", "x":11, "y":0},
{"label":"F9", "x":12.5, "y":0},
{"label":"F10", "x":13.5, "y":0},
{"label":"F11", "x":14.5, "y":0},
{"label":"F12", "x":15.5, "y":0},
{"label":"Prt Sc", "x":17.5, "y":0},
{"label":"Scr Lk", "x":18.5, "y":0},
{"label":"Pause", "x":19.5, "y":0},
{"label":"F13", "x":0, "y":1.25},
{"label":"~", "x":1.5, "y":1.25},
{"label":"!", "x":2.5, "y":1.25},
{"label":"@", "x":3.5, "y":1.25},
{"label":"#", "x":4.5, "y":1.25},
{"label":"$", "x":5.5, "y":1.25},
{"label":"%", "x":6.5, "y":1.25},
{"label":"^", "x":7.5, "y":1.25},
{"label":"&", "x":10, "y":1.25},
{"label":"*", "x":11, "y":1.25},
{"label":"(", "x":12, "y":1.25},
{"label":")", "x":13, "y":1.25},
{"label":"_", "x":14, "y":1.25},
{"label":"+", "x":15, "y":1.25},
{"label":"Del", "x":16, "y":1.25},
{"label":"Bksp", "x":17, "y":1.25},
{"label":"Ins", "x":18.5, "y":1.25},
{"label":"Pg Up", "x":19.5, "y":1.25},
{"label":"F14", "x":0, "y":2.25},
{"label":"Tab", "x":1.5, "y":2.25, "w":1.5},
{"label":"Q", "x":3, "y":2.25},
{"label":"W", "x":4, "y":2.25},
{"label":"E", "x":5, "y":2.25},
{"label":"R", "x":6, "y":2.25},
{"label":"T", "x":7, "y":2.25},
{"label":"Y", "x":9.5, "y":2.25},
{"label":"U", "x":10.5, "y":2.25},
{"label":"I", "x":11.5, "y":2.25},
{"label":"O", "x":12.5, "y":2.25},
{"label":"P", "x":13.5, "y":2.25},
{"label":"{", "x":14.5, "y":2.25},
{"label":"}", "x":15.5, "y":2.25},
{"label":"|", "x":16.5, "y":2.25, "w":1.5},
{"label":"Del", "x":18.5, "y":2.25},
{"label":"Pg Dn", "x":19.5, "y":2.25},
{"label":"F15", "x":0, "y":3.25},
{"label":"Caps Lock", "x":1.5, "y":3.25, "w":1.75},
{"label":"A", "x":3.25, "y":3.25},
{"label":"S", "x":4.25, "y":3.25},
{"label":"D", "x":5.25, "y":3.25},
{"label":"F", "x":6.25, "y":3.25},
{"label":"G", "x":7.25, "y":3.25},
{"label":"H", "x":9.75, "y":3.25},
{"label":"J", "x":10.75, "y":3.25},
{"label":"K", "x":11.75, "y":3.25},
{"label":"L", "x":12.75, "y":3.25},
{"label":":", "x":13.75, "y":3.25},
{"label":"\"", "x":14.75, "y":3.25},
{"label":"#", "x":15.75, "y":3.25},
{"label":"Enter", "x":16.75, "y":3.25, "w":1.25},
{"label":"Home", "x":18.5, "y":3.25},
{"label":"End", "x":19.5, "y":3.25},
{"label":"F16", "x":0, "y":4.25},
{"label":"Shift", "x":1.5, "y":4.25, "w":1.25},
{"label":"\\", "x":2.75, "y":4.25},
{"label":"Z", "x":3.75, "y":4.25},
{"label":"X", "x":4.75, "y":4.25},
{"label":"C", "x":5.75, "y":4.25},
{"label":"V", "x":6.75, "y":4.25},
{"label":"B", "x":7.75, "y":4.25},
{"label":"N", "x":10.25, "y":4.25},
{"label":"M", "x":11.25, "y":4.25},
{"label":"<", "x":12.25, "y":4.25},
{"label":">", "x":13.25, "y":4.25},
{"label":"?", "x":14.25, "y":4.25},
{"label":"Shift", "x":15.25, "y":4.25, "w":1.75},
{"label":"Up", "x":18.5, "y":4.25},
{"label":"F17", "x":0, "y":5.25},
{"label":"Ctrl", "x":1.5, "y":5.25, "w":1.25},
{"label":"Win", "x":2.75, "y":5.25},
{"label":"Alt", "x":3.75, "y":5.25, "w":1.25},
{"label":"Fn", "x":5, "y":5.25, "w":1.25},
{"label":"Space", "x":6.25, "y":5.25},
{"label":"Fn", "x":7.25, "y":5.25, "w":1.25},
{"label":"Fn", "x":10, "y":5.25, "w":1.25},
{"label":"Space", "x":11.25, "y":5.25, "w":2.25},
{"label":"Alt", "x":13.5, "y":5.25, "w":1.25},
{"label":"Win", "x":14.75, "y":5.25},
{"label":"Ctrl", "x":15.75, "y":5.25, "w":1.25},
{"label":"Left", "x":17.5, "y":5.25},
{"label":"Down", "x":18.5, "y":5.25},
{"label":"Right", "x":19.5, "y":5.25}
]
}
}
}

View File

@ -0,0 +1 @@
#include "kbo5000.h"

View File

@ -0,0 +1,7 @@
#pragma once
#include "quantum.h"
#ifdef KEYBOARD_keebio_kbo5000_rev1
#include "rev1.h"
#endif

View File

@ -0,0 +1,58 @@
#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_ansi(
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_ENT, KC_HOME, KC_END,
KC_F16, KC_LSFT, 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_ansi(
BL_STEP, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT_ansi(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
void 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);
}
}
}

View File

@ -0,0 +1,58 @@
#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_iso(
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_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_iso(
BL_STEP, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT_iso(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
void 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);
}
}
}

View File

@ -0,0 +1,3 @@
#pragma once
#define DYNAMIC_KEYMAP_LAYER_COUNT 3

View File

@ -0,0 +1,58 @@
#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(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
void 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);
}
}
}

View File

@ -0,0 +1,3 @@
VIA_ENABLE = yes
CONSOLE_ENABLE = yes
LTO_ENABLE = yes

View File

@ -0,0 +1,20 @@
# KBO-5000
A split staggered keyboard designed to be like the G80-5000, made and sold by Keebio. [More info at Keebio](https://keeb.io).
* Keyboard Maintainer: [Bakingpy/nooges](https://github.com/nooges)
* Hardware Availability: [Keebio](https://keeb.io/)
Make example for this keyboard (after setting up your build environment):
make keebio/kbo5000/rev1:default
Example of flashing this keyboard:
make keebio/kbo5000/rev1:default:flash
Handedness detection is already hardwired onto the PCB, so no need to deal with `EE_HANDS` or flashing .eep files.
See [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) then the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information.
A build guide for this keyboard can be found here: [Keebio Build Guides](https://docs.keeb.io)

View File

@ -0,0 +1,65 @@
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
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
/* USB Device descriptor parameter */
#define VENDOR_ID 0xCB10
#define PRODUCT_ID 0x126A
#define DEVICE_VER 0x0100
#define MANUFACTURER Keebio
#define PRODUCT KBO-5000 Rev. 1
#define DESCRIPTION Split staggered keyboard
/* key matrix size */
// Rows are doubled-up
#define MATRIX_ROWS 12
#define MATRIX_COLS 10
#define DIODE_DIRECTION COL2ROW
// wiring of each half
#define MATRIX_ROW_PINS { B1, B2, C7, B4, D7, B0 }
#define MATRIX_COL_PINS { F4, NO_PIN, F0, B7, B3, D2, D3, D5, D4, NO_PIN }
#define MATRIX_ROW_PINS_RIGHT { B3, B2, B6, B4, D7, B0 }
#define MATRIX_COL_PINS_RIGHT { F1, F0, F4, F5, F6, D5, D2, D3, B7, B1 }
#define SPLIT_HAND_PIN F7
#define ENCODERS_PAD_A { F5, NO_PIN }
#define ENCODERS_PAD_B { F6, NO_PIN }
#define ENCODERS_PAD_A_RIGHT { D6, C7 }
#define ENCODERS_PAD_B_RIGHT { D4, C6 }
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
#define BACKLIGHT_PIN B5
#define CAPS_LOCK_LED_PIN B6
/* serial.c configuration for split keyboard */
#define SOFT_SERIAL_PIN D0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
/* ws2812 RGB LED */
#define RGB_DI_PIN E6
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 16 // Number of LEDs
#define RGBLED_SPLIT { 8, 8 }
#define RGBLIGHT_LED_MAP { 1, 2, 3, 12, 13, 14, 15, 0, 7, 6, 5, 4, 11, 10, 9, 8 }

View File

@ -0,0 +1,32 @@
#include "kbo5000.h"
#include "split_util.h"
void matrix_init_kb(void) {
setPinOutput(CAPS_LOCK_LED_PIN);
matrix_init_user();
}
bool led_update_kb(led_t led_state) {
// Only update if left half
if (isLeftHand && led_update_user(led_state)) {
writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
}
return true;
}
void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE
backlight_enable();
backlight_level(3);
#endif
#ifdef RGBLIGHT_ENABLE
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
#ifdef RGBLIGHT_ANIMATIONS
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
#endif
#endif
eeconfig_update_kb(0);
eeconfig_init_user();
}

View File

@ -0,0 +1,73 @@
#pragma once
#include "kbo5000.h"
#include "quantum.h"
#define LAYOUT_ansi( \
LF1, LF4, LF5, LF6, LF7, LF8, LF9, RF1, RF2, RF4, RF5, RF6, RF7, RF8, RF9, RF10, \
LA1, LA3, LA4, LA5, LA6, LA7, LA8, LA9, RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10, \
LB1, LB3, LB4, LB5, LB6, LB7, LB8, RB1, RB2, RB3, RB4, RB5, RB6, RB7, RB8, RB9, RB10, \
LC1, LC3, LC4, LC5, LC6, LC7, LC8, RC1, RC2, RC3, RC4, RC5, RC6, RC8, RC9, RC10, \
LD1, LD3, LD5, LD6, LD7, LD8, LD9, RD1, RD2, RD3, RD4, RD5, RD7, RD9, \
LE1, LE3, LE4, LE5, LE6, LE7, LE8, RE1, RE2, RE3, RE4, RE7, RE8, RE9, RE10 \
) \
{ \
{ LA1, KC_NO, LA3, LA4, LA5, LA6, LA7, LA8, LA9, KC_NO }, \
{ LB1, KC_NO, LB3, LB4, LB5, LB6, LB7, LB8, KC_NO, KC_NO }, \
{ LC1, KC_NO, LC3, LC4, LC5, LC6, LC7, LC8, KC_NO, KC_NO }, \
{ LD1, KC_NO, LD3, KC_NO, LD5, LD6, LD7, LD8, LD9, KC_NO }, \
{ LE1, KC_NO, LE3, LE4, LE5, LE6, LE7, LE8, KC_NO, KC_NO }, \
{ LF1, KC_NO, KC_NO, LF4, LF5, LF6, LF7, LF8, LF9, KC_NO }, \
{ RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10 }, \
{ RB1, RB2, RB3, RB4, RB5, RB6, RB7, RB8, RB9, RB10 }, \
{ RC1, RC2, RC3, RC4, RC5, RC6, KC_NO, RC8, RC9, RC10 }, \
{ RD1, RD2, RD3, RD4, RD5, KC_NO, RD7, KC_NO, RD9, KC_NO }, \
{ RE1, RE2, RE3, RE4, KC_NO, KC_NO, RE7, RE8, RE9, RE10 }, \
{ RF1, RF2, KC_NO, RF4, RF5, RF6, RF7, RF8, RF9, RF10 } \
}
#define LAYOUT_iso( \
LF1, LF4, LF5, LF6, LF7, LF8, LF9, RF1, RF2, RF4, RF5, RF6, RF7, RF8, RF9, RF10, \
LA1, LA3, LA4, LA5, LA6, LA7, LA8, LA9, RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10, \
LB1, LB3, LB4, LB5, LB6, LB7, LB8, RB1, RB2, RB3, RB4, RB5, RB6, RB7, RB9, RB10, \
LC1, LC3, LC4, LC5, LC6, LC7, LC8, RC1, RC2, RC3, RC4, RC5, RC6, RC7, RC8, RC9, RC10, \
LD1, LD3, LD4, LD5, LD6, LD7, LD8, LD9, RD1, RD2, RD3, RD4, RD5, RD7, RD9, \
LE1, LE3, LE4, LE5, LE6, LE7, LE8, RE1, RE2, RE3, RE4, RE7, RE8, RE9, RE10 \
) \
{ \
{ LA1, KC_NO, LA3, LA4, LA5, LA6, LA7, LA8, LA9, KC_NO }, \
{ LB1, KC_NO, LB3, LB4, LB5, LB6, LB7, LB8, KC_NO, KC_NO }, \
{ LC1, KC_NO, LC3, LC4, LC5, LC6, LC7, LC8, KC_NO, KC_NO }, \
{ LD1, KC_NO, LD3, LD4, LD5, LD6, LD7, LD8, LD9, KC_NO }, \
{ LE1, KC_NO, LE3, LE4, LE5, LE6, LE7, LE8, KC_NO, KC_NO }, \
{ LF1, KC_NO, KC_NO, LF4, LF5, LF6, LF7, LF8, LF9, KC_NO }, \
{ RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10 }, \
{ RB1, RB2, RB3, RB4, RB5, RB6, RB7, KC_NO, RB9, RB10 }, \
{ RC1, RC2, RC3, RC4, RC5, RC6, RC7, RC8, RC9, RC10 }, \
{ RD1, RD2, RD3, RD4, RD5, KC_NO, RD7, KC_NO, RD9, KC_NO }, \
{ RE1, RE2, RE3, RE4, KC_NO, KC_NO, RE7, RE8, RE9, RE10 }, \
{ RF1, RF2, KC_NO, RF4, RF5, RF6, RF7, RF8, RF9, RF10 } \
}
#define LAYOUT_all( \
LF1, LF4, LF5, LF6, LF7, LF8, LF9, RF1, RF2, RF4, RF5, RF6, RF7, RF8, RF9, RF10, \
LA1, LA3, LA4, LA5, LA6, LA7, LA8, LA9, RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10, \
LB1, LB3, LB4, LB5, LB6, LB7, LB8, RB1, RB2, RB3, RB4, RB5, RB6, RB7, RB8, RB9, RB10, \
LC1, LC3, LC4, LC5, LC6, LC7, LC8, RC1, RC2, RC3, RC4, RC5, RC6, RC7, RC8, RC9, RC10, \
LD1, LD3, LD4, LD5, LD6, LD7, LD8, LD9, RD1, RD2, RD3, RD4, RD5, RD7, RD9, \
LE1, LE3, LE4, LE5, LE6, LE7, LE8, RE1, RE2, RE3, RE4, RE7, RE8, RE9, RE10 \
) \
{ \
{ LA1, KC_NO, LA3, LA4, LA5, LA6, LA7, LA8, LA9, KC_NO }, \
{ LB1, KC_NO, LB3, LB4, LB5, LB6, LB7, LB8, KC_NO, KC_NO }, \
{ LC1, KC_NO, LC3, LC4, LC5, LC6, LC7, LC8, KC_NO, KC_NO }, \
{ LD1, KC_NO, LD3, LD4, LD5, LD6, LD7, LD8, LD9, KC_NO }, \
{ LE1, KC_NO, LE3, LE4, LE5, LE6, LE7, LE8, KC_NO, KC_NO }, \
{ LF1, KC_NO, KC_NO, LF4, LF5, LF6, LF7, LF8, LF9, KC_NO }, \
{ RA1, RA2, RA3, RA4, RA5, RA6, RA7, RA8, RA9, RA10 }, \
{ RB1, RB2, RB3, RB4, RB5, RB6, RB7, RB8, RB9, RB10 }, \
{ RC1, RC2, RC3, RC4, RC5, RC6, RC7, RC8, RC9, RC10 }, \
{ RD1, RD2, RD3, RD4, RD5, KC_NO, RD7, KC_NO, RD9, KC_NO }, \
{ RE1, RE2, RE3, RE4, KC_NO, KC_NO, RE7, RE8, RE9, RE10 }, \
{ RF1, RF2, KC_NO, RF4, RF5, RF6, RF7, RF8, RF9, RF10 } \
}

View File

@ -0,0 +1,3 @@
BACKLIGHT_ENABLE = yes
RGBLIGHT_ENABLE = yes
ENCODER_ENABLE = yes

View File

@ -0,0 +1,34 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
MIDI_ENABLE = no # MIDI controls
AUDIO_ENABLE = no # Audio output on port C6
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
LTO_ENABLE = yes
SPLIT_KEYBOARD = yes
DEFAULT_FOLDER = keebio/kbo5000/rev1