From b6b360bfabd10708ff1f6fce5d42fd042672aaf9 Mon Sep 17 00:00:00 2001 From: John-Schreiber <56258966+John-Schreiber@users.noreply.github.com> Date: Tue, 28 Mar 2023 21:50:07 -0400 Subject: [PATCH] [Keyboard] Add support for BFO-9000 (#426) * Add files via upload * Update keyboards/keebio/bfo9000/keymaps/vial/rules.mk Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --------- Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- .../keebio/bfo9000/keymaps/vial/config.h | 32 ++++ .../keebio/bfo9000/keymaps/vial/keymap.c | 15 ++ .../keebio/bfo9000/keymaps/vial/rules.mk | 5 + .../keebio/bfo9000/keymaps/vial/vial.json | 152 ++++++++++++++++++ 4 files changed, 204 insertions(+) create mode 100644 keyboards/keebio/bfo9000/keymaps/vial/config.h create mode 100644 keyboards/keebio/bfo9000/keymaps/vial/keymap.c create mode 100644 keyboards/keebio/bfo9000/keymaps/vial/rules.mk create mode 100644 keyboards/keebio/bfo9000/keymaps/vial/vial.json diff --git a/keyboards/keebio/bfo9000/keymaps/vial/config.h b/keyboards/keebio/bfo9000/keymaps/vial/config.h new file mode 100644 index 000000000000..c461f0e59986 --- /dev/null +++ b/keyboards/keebio/bfo9000/keymaps/vial/config.h @@ -0,0 +1,32 @@ +/* +This is the c configuration file for the keymap + +Copyright 2012 Jun Wako +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 . +*/ + +#pragma once +#define VIAL_KEYBOARD_UID {0xCA, 0x43, 0x6E, 0xF3, 0x4D, 0x91, 0x78, 0x1F} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 5 } + + +//#define USE_I2C + +/* Select hand configuration */ +// #define MASTER_RIGHT +// #define EE_HANDS +#define DYNAMIC_KEYMAP_LAYER_COUNT 2 diff --git a/keyboards/keebio/bfo9000/keymaps/vial/keymap.c b/keyboards/keebio/bfo9000/keymaps/vial/keymap.c new file mode 100644 index 000000000000..f37ea79c405a --- /dev/null +++ b/keyboards/keebio/bfo9000/keymaps/vial/keymap.c @@ -0,0 +1,15 @@ +#include QMK_KEYBOARD_H + +#define _BASE 0 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +[_BASE] = LAYOUT( + KC_ESC, KC_VOLU, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, + KC_HOME, KC_VOLD, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, + KC_END, KC_TAB, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, + KC_PGUP, KC_CAPS, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_ENT, + KC_PGDN, KC_UP, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, XXXXXXX, + KC_LEFT, KC_DOWN, KC_RGHT, KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, KC_ENT, KC_BSPC, KC_SPC, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT +) +}; diff --git a/keyboards/keebio/bfo9000/keymaps/vial/rules.mk b/keyboards/keebio/bfo9000/keymaps/vial/rules.mk new file mode 100644 index 000000000000..6c6095dc8917 --- /dev/null +++ b/keyboards/keebio/bfo9000/keymaps/vial/rules.mk @@ -0,0 +1,5 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +COMMAND_ENABLE = no +KEY_OVERRIDE_ENABLE = no \ No newline at end of file diff --git a/keyboards/keebio/bfo9000/keymaps/vial/vial.json b/keyboards/keebio/bfo9000/keymaps/vial/vial.json new file mode 100644 index 000000000000..dd1cb17f8137 --- /dev/null +++ b/keyboards/keebio/bfo9000/keymaps/vial/vial.json @@ -0,0 +1,152 @@ +{ + "name": "Keeb.io BFO-9000", + "vendorId": "0xCB10", + "productId": "0x1169", + "lighting": "qmk_rgblight", + "matrix": { + "rows": 12, + "cols": 9 + }, + "layouts": { + "keymap": [ + [ + "0,0", + "0,1", + "0,2", + "0,3", + "0,4", + "0,5", + "0,6", + "0,7", + "0,8", + { + "x": 5 + }, + "6,0", + "6,1", + "6,2", + "6,3", + "6,4", + "6,5", + "6,6", + "6,7", + "6,8" + ], + [ + "1,0", + "1,1", + "1,2", + "1,3", + "1,4", + "1,5", + "1,6", + "1,7", + "1,8", + { + "x": 5 + }, + "7,0", + "7,1", + "7,2", + "7,3", + "7,4", + "7,5", + "7,6", + "7,7", + "7,8" + ], + [ + "2,0", + "2,1", + "2,2", + "2,3", + "2,4", + "2,5", + "2,6", + "2,7", + "2,8", + { + "x": 5 + }, + "8,0", + "8,1", + "8,2", + "8,3", + "8,4", + "8,5", + "8,6", + "8,7", + "8,8" + ], + [ + "3,0", + "3,1", + "3,2", + "3,3", + "3,4", + "3,5", + "3,6", + "3,7", + "3,8", + { + "x": 5 + }, + "9,0", + "9,1", + "9,2", + "9,3", + "9,4", + "9,5", + "9,6", + "9,7", + "9,8" + ], + [ + "4,0", + "4,1", + "4,2", + "4,3", + "4,4", + "4,5", + "4,6", + "4,7", + "4,8", + { + "x": 5 + }, + "10,0", + "10,1", + "10,2", + "10,3", + "10,4", + "10,5", + "10,6", + "10,7", + "10,8" + ], + [ + "5,0", + "5,1", + "5,2", + "5,3", + "5,4", + "5,5", + "5,6", + "5,7", + "5,8", + { + "x": 5 + }, + "11,0", + "11,1", + "11,2", + "11,3", + "11,4", + "11,5", + "11,6", + "11,7", + "11,8" + ] + ] + } +} \ No newline at end of file