From 4a8515292567b033a37131afd711801e6b1cfe7e Mon Sep 17 00:00:00 2001 From: josh-l-wang <22173775+josh-l-wang@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:32:52 -0500 Subject: [PATCH] add bruce the keyboard (#674) * add bruce the keyboard * Update vial.json Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> * Update config.h Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> * Update rules.mk Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> * Clean up Bruce the Keyboard --------- Co-authored-by: avshockeyw Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- keyboards/jlw/bruce_the_keyboard/info.json | 68 ++++++++ .../keymaps/default/keymap.c | 40 +++++ .../keymaps/default/rules.mk | 1 + .../bruce_the_keyboard/keymaps/vial/config.h | 10 ++ .../bruce_the_keyboard/keymaps/vial/keymap.c | 40 +++++ .../bruce_the_keyboard/keymaps/vial/rules.mk | 2 + .../bruce_the_keyboard/keymaps/vial/vial.json | 152 ++++++++++++++++++ keyboards/jlw/bruce_the_keyboard/readme.md | 5 + 8 files changed, 318 insertions(+) create mode 100644 keyboards/jlw/bruce_the_keyboard/info.json create mode 100644 keyboards/jlw/bruce_the_keyboard/keymaps/default/keymap.c create mode 100644 keyboards/jlw/bruce_the_keyboard/keymaps/default/rules.mk create mode 100644 keyboards/jlw/bruce_the_keyboard/keymaps/vial/config.h create mode 100644 keyboards/jlw/bruce_the_keyboard/keymaps/vial/keymap.c create mode 100644 keyboards/jlw/bruce_the_keyboard/keymaps/vial/rules.mk create mode 100644 keyboards/jlw/bruce_the_keyboard/keymaps/vial/vial.json create mode 100644 keyboards/jlw/bruce_the_keyboard/readme.md diff --git a/keyboards/jlw/bruce_the_keyboard/info.json b/keyboards/jlw/bruce_the_keyboard/info.json new file mode 100644 index 0000000000..6f819bb425 --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/info.json @@ -0,0 +1,68 @@ +{ + "keyboard_name": "Bruce the Keyboard", + "manufacturer": "whydobearsexplod", + "url": "https://github.com/josh-l-wang/bruce-the-keyboard", + "maintainer": "jlw", + "usb": { + "vid": "0x1209", + "pid": "0xA459", + "device_version": "0.0.1" + }, + "processor": "STM32F072", + "bootloader": "stm32-dfu", + "diode_direction": "COL2ROW", + "matrix_pins": { + "cols": ["B1", "B0", "A7", "A4", "A3", "B7", "B6", "B5", "B4", "B3"], + "rows": ["B11", "B9", "A5", "A6"] + }, + "features": { + "bootmagic": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + }, + "layouts": { + "LAYOUT": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0, "h":1.75}, + {"matrix": [0, 1], "x": 1, "y": 0, "h":1.5}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0, "h":1.25}, + {"matrix": [0, 4], "x": 4, "y": 0, "h":1.25}, + {"matrix": [0, 5], "x": 5, "y": 0, "h":1.25}, + {"matrix": [0, 6], "x": 6, "y": 0, "h":1.25}, + {"matrix": [0, 7], "x": 7, "y": 0}, + {"matrix": [0, 8], "x": 8, "y": 0, "h":1.5}, + {"matrix": [0, 9], "x": 9, "y": 0, "h":1.75}, + + {"matrix": [1, 0], "x": 0, "y": 1.75}, + {"matrix": [1, 1], "x": 1, "y": 1.5}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1.25}, + {"matrix": [1, 4], "x": 4, "y": 1.25}, + {"matrix": [1, 5], "x": 5, "y": 1.25}, + {"matrix": [1, 6], "x": 6, "y": 1.25}, + {"matrix": [1, 7], "x": 7, "y": 1}, + {"matrix": [1, 8], "x": 8, "y": 1.5}, + {"matrix": [1, 9], "x": 9, "y": 1.75}, + + {"matrix": [2, 0], "x": 0, "y": 2.75, "h":1.5}, + {"matrix": [2, 1], "x": 1, "y": 2.5, "h":1.75}, + {"matrix": [2, 2], "x": 2, "y": 2, "h":1.25}, + {"matrix": [2, 3], "x": 3, "y": 2.25}, + {"matrix": [2, 4], "x": 4, "y": 2.25}, + {"matrix": [2, 5], "x": 5, "y": 2.25}, + {"matrix": [2, 6], "x": 6, "y": 2.25}, + {"matrix": [2, 7], "x": 7, "y": 2, "h":1.25}, + {"matrix": [2, 8], "x": 8, "y": 2.5, "h":1.75}, + {"matrix": [2, 9], "x": 9, "y": 2.75, "h":1.5}, + + {"matrix": [3, 2], "x": 2, "y": 3.25}, + {"matrix": [3, 3], "x": 3, "y": 3.25, "w": 2}, + {"matrix": [3, 5], "x": 5, "y": 3.25, "w": 2}, + {"matrix": [3, 7], "x": 7, "y": 3.25}, + ] + } + + } +} diff --git a/keyboards/jlw/bruce_the_keyboard/keymaps/default/keymap.c b/keyboards/jlw/bruce_the_keyboard/keymaps/default/keymap.c new file mode 100644 index 0000000000..9efecb5115 --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/keymaps/default/keymap.c @@ -0,0 +1,40 @@ +// Copyright 2023 sporkus +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +#define HM_A LSFT_T(KC_A) +#define HM_S LALT_T(KC_S) +#define HM_D LGUI_T(KC_D) +#define HM_F LCTL_T(KC_F) +#define HM_J RCTL_T(KC_J) +#define HM_K RGUI_T(KC_K) +#define HM_L RALT_T(KC_L) +#define HM_Z LSFT_T(KC_Z) +#define HM_SLSH LSFT_T(KC_SLSH) +#define HM_QUOT RSFT_T(KC_QUOT) + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, + KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, + MO(1), KC_ENT, MO(2), KC_BSPC + ), + + [1] = LAYOUT( + _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_0, + _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, + _______, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, _______, + _______, _______, _______, _______ + ), + + [2] = LAYOUT( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_LEFT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______ + ) +}; + diff --git a/keyboards/jlw/bruce_the_keyboard/keymaps/default/rules.mk b/keyboards/jlw/bruce_the_keyboard/keymaps/default/rules.mk new file mode 100644 index 0000000000..17ab7c1dcc --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/keymaps/default/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank. \ No newline at end of file diff --git a/keyboards/jlw/bruce_the_keyboard/keymaps/vial/config.h b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/config.h new file mode 100644 index 0000000000..fc83f74feb --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/config.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x5D, 0x03, 0x13, 0x17, 0xBA, 0x20, 0xF5, 0x16} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 9 } + +#define VIAL_COMBO_ENTRIES 69 +#define DYNAMIC_KEYMAP_LAYER_COUNT 8 diff --git a/keyboards/jlw/bruce_the_keyboard/keymaps/vial/keymap.c b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/keymap.c new file mode 100644 index 0000000000..9efecb5115 --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/keymap.c @@ -0,0 +1,40 @@ +// Copyright 2023 sporkus +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +#define HM_A LSFT_T(KC_A) +#define HM_S LALT_T(KC_S) +#define HM_D LGUI_T(KC_D) +#define HM_F LCTL_T(KC_F) +#define HM_J RCTL_T(KC_J) +#define HM_K RGUI_T(KC_K) +#define HM_L RALT_T(KC_L) +#define HM_Z LSFT_T(KC_Z) +#define HM_SLSH LSFT_T(KC_SLSH) +#define HM_QUOT RSFT_T(KC_QUOT) + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, + KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, + MO(1), KC_ENT, MO(2), KC_BSPC + ), + + [1] = LAYOUT( + _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_0, + _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, + _______, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, _______, + _______, _______, _______, _______ + ), + + [2] = LAYOUT( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_LEFT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______ + ) +}; + diff --git a/keyboards/jlw/bruce_the_keyboard/keymaps/vial/rules.mk b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/rules.mk new file mode 100644 index 0000000000..4f7618e9b2 --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes diff --git a/keyboards/jlw/bruce_the_keyboard/keymaps/vial/vial.json b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/vial.json new file mode 100644 index 0000000000..e16b011e97 --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/keymaps/vial/vial.json @@ -0,0 +1,152 @@ +{ + "lighting": "none", + "matrix": { + "rows": 4, + "cols": 10 + }, + "layouts": { + "keymap": +[ + [ + { + "h": 1.75 + }, + "0,0", + { + "h": 1.5 + }, + "0,1", + "0,2", + { + "h": 1.25 + }, + "0,3", + { + "h": 1.25 + }, + "0,4", + { + "h": 1.25 + }, + "0,5", + { + "h": 1.25 + }, + "0,6", + "0,7", + { + "h": 1.5 + }, + "0,8", + { + "h": 1.75 + }, + "0,9" + ], + [ + { + "x": 2 + }, + "1,2", + { + "x": 4 + }, + "1,7" + ], + [ + { + "y": -0.75, + "x": 3 + }, + "1,3", + "1,4", + "1,5", + "1,6" + ], + [ + { + "y": -0.75, + "x": 1 + }, + "1,1", + { + "x": 6 + }, + "1,8" + ], + [ + { + "y": -0.75 + }, + "1,0", + { + "x": 8 + }, + "1,9" + ], + [ + { + "y": -0.75, + "x": 2, + "h": 1.25 + }, + "2,2", + { + "x": 4, + "h": 1.25 + }, + "2,7" + ], + [ + { + "y": -0.75, + "x": 3 + }, + "2,3", + "2,4", + "2,5", + "2,6" + ], + [ + { + "y": -0.75, + "x": 1, + "h": 1.75 + }, + "2,1", + { + "x": 6, + "h": 1.75 + }, + "2,8" + ], + [ + { + "y": -0.75, + "h": 1.5 + }, + "2,0", + { + "x": 8, + "h": 1.5 + }, + "2,9" + ], + [ + { + "y": -0.5, + "x": 2 + }, + "3,2", + { + "w": 2 + }, + "3,3", + { + "w": 2 + }, + "3,5", + "3,7" + ] +] +}} \ No newline at end of file diff --git a/keyboards/jlw/bruce_the_keyboard/readme.md b/keyboards/jlw/bruce_the_keyboard/readme.md new file mode 100644 index 0000000000..5137798f2a --- /dev/null +++ b/keyboards/jlw/bruce_the_keyboard/readme.md @@ -0,0 +1,5 @@ +# This is the firmware for Bruce the Keyboard + +Please note that Bruce is a keyboard, not a human. + +Bruce the Keyboard is a column staggered 34-key board created by whydobearsexplod and [jlw](github.com/josh-l-wang) with a single layout. \ No newline at end of file