From ef30b68e6f93ef836dfbc493836f4069726f8ea3 Mon Sep 17 00:00:00 2001 From: Kyle McCreery Date: Fri, 28 Jul 2023 22:33:53 -0400 Subject: [PATCH] initial commit --- keyboards/mechwild/bb40/f401/rules.mk | 6 ++ keyboards/mechwild/bb40/f411/rules.mk | 6 ++ keyboards/mechwild/bb40/info.json | 86 +++++++++++++++++++ .../mechwild/bb40/keymaps/default/keymap.c | 36 ++++++++ keyboards/mechwild/bb40/readme.md | 19 ++++ keyboards/mechwild/bb40/rules.mk | 5 ++ 6 files changed, 158 insertions(+) create mode 100644 keyboards/mechwild/bb40/f401/rules.mk create mode 100644 keyboards/mechwild/bb40/f411/rules.mk create mode 100644 keyboards/mechwild/bb40/info.json create mode 100644 keyboards/mechwild/bb40/keymaps/default/keymap.c create mode 100644 keyboards/mechwild/bb40/readme.md create mode 100644 keyboards/mechwild/bb40/rules.mk diff --git a/keyboards/mechwild/bb40/f401/rules.mk b/keyboards/mechwild/bb40/f401/rules.mk new file mode 100644 index 000000000000..1b21bbaf7705 --- /dev/null +++ b/keyboards/mechwild/bb40/f401/rules.mk @@ -0,0 +1,6 @@ +# MCU name +MCU = STM32F401 +BOARD = BLACKPILL_STM32_F401 + +# Bootloader selection +BOOTLOADER = stm32-dfu diff --git a/keyboards/mechwild/bb40/f411/rules.mk b/keyboards/mechwild/bb40/f411/rules.mk new file mode 100644 index 000000000000..c25a64f4b3b6 --- /dev/null +++ b/keyboards/mechwild/bb40/f411/rules.mk @@ -0,0 +1,6 @@ +# MCU name +MCU = STM32F411 +BOARD = BLACKPILL_STM32_F411 + +# Bootloader selection +BOOTLOADER = stm32-dfu diff --git a/keyboards/mechwild/bb40/info.json b/keyboards/mechwild/bb40/info.json new file mode 100644 index 000000000000..1a8aff273579 --- /dev/null +++ b/keyboards/mechwild/bb40/info.json @@ -0,0 +1,86 @@ +{ + "manufacturer": "MechWild", + "keyboard_name": "BB40", + "url": "https://mechwild.com/product/bb40/", + "maintainer": "kylemccreery", + "usb": { + "device_version": "1.0.0", + "pid": "0x1714", + "vid": "0x6D77" + }, + "features": { + "bootmagic": true, + "mousekey": true, + "extrakey": true, + "console": false, + "command": false, + "nkro": true, + "encoder": true, + }, + "indicators": { + "caps_lock": "B8", + "num_lock": "B7", + "scroll_lock": "B9" + }, + + "matrix_pins": { + "rows": ["B12", "B13", "B14", "B15"], + "cols": ["B10", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15"] + }, + "diode_direction": "COL2ROW", + "encoder": { + "rotary": [ + {"pin_a": "B3", "pin_b": "B4"} + ] + }, + "layouts": { + "LAYOUT": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0}, + {"matrix": [0, 4], "x": 4, "y": 0}, + {"matrix": [0, 5], "x": 5, "y": 0}, + {"matrix": [0, 6], "x": 6, "y": 0}, + {"matrix": [0, 7], "x": 7, "y": 0}, + {"matrix": [0, 8], "x": 8, "y": 0}, + {"matrix": [0, 9], "x": 9, "y": 0}, + {"matrix": [0, 10], "x": 10, "y": 0}, + {"matrix": [0, 11], "x": 11, "y": 0}, + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + {"matrix": [1, 4], "x": 4, "y": 1}, + {"matrix": [1, 5], "x": 5, "y": 1}, + {"matrix": [1, 6], "x": 6, "y": 1}, + {"matrix": [1, 7], "x": 7, "y": 1}, + {"matrix": [1, 8], "x": 8, "y": 1}, + {"matrix": [1, 9], "x": 9, "y": 1}, + {"matrix": [1, 11], "x": 11, "y": 1}, + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 2}, + {"matrix": [2, 4], "x": 4, "y": 2}, + {"matrix": [2, 5], "x": 5, "y": 2}, + {"matrix": [2, 6], "x": 6, "y": 2}, + {"matrix": [2, 7], "x": 7, "y": 2}, + {"matrix": [2, 8], "x": 8, "y": 2}, + {"matrix": [2, 9], "x": 9, "y": 2}, + {"matrix": [2, 10], "x": 10, "y": 2}, + {"matrix": [2, 11], "x": 11, "y": 2}, + {"matrix": [3, 0], "x": 0, "y": 3}, + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3}, + {"matrix": [3, 4], "x": 4, "y": 3}, + {"matrix": [3, 6], "x": 6, "y": 3}, + {"matrix": [3, 7], "x": 7, "y": 3}, + {"matrix": [3, 8], "x": 8, "y": 3}, + {"matrix": [3, 9], "x": 9, "y": 3}, + {"matrix": [3, 10], "x": 10, "y": 3}, + {"matrix": [3, 11], "x": 11, "y": 3} + ] + } + } +} diff --git a/keyboards/mechwild/bb40/keymaps/default/keymap.c b/keyboards/mechwild/bb40/keymaps/default/keymap.c new file mode 100644 index 000000000000..aeac53306c8d --- /dev/null +++ b/keyboards/mechwild/bb40/keymaps/default/keymap.c @@ -0,0 +1,36 @@ +// Copyright 2023 Kyle McCreery (@kylemccreery) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +// Defines names for use in layer keycodes and the keymap + +enum layer_names { + _BASE, + _FN1 +}; + + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* Base */ + [_BASE] = LAYOUT( + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_RSFT, KC_UP, KC_SLSH, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_LEFT, KC_DOWN, KC_RIGHT, KC_MUTE + ), + + [_FN1] = LAYOUT( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ + ) +}; + +#ifdef ENCODER_MAP_ENABLE +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [_FN1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, +}; +#endif diff --git a/keyboards/mechwild/bb40/readme.md b/keyboards/mechwild/bb40/readme.md new file mode 100644 index 000000000000..f03ed03a9245 --- /dev/null +++ b/keyboards/mechwild/bb40/readme.md @@ -0,0 +1,19 @@ +# OrangeBoyErgo (OBE) + +![obe](https://i.imgur.com/bzqi2XOh.png) + +An affordable Alice-like keyboard kit powered by the STM32 Blackpill. + +* Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery) +* Hardware Supported: OBE v2.1 +* Hardware Availability: [OBE on MechWild](https://mechwild.com/product/orange-boy-ergo/) + +Make example for this keyboard (after setting up your build environment): + + make mechwild/obe:default + +Flashing example for this keyboard: + + make mechwild/obe:default:flash + +See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/mechwild/bb40/rules.mk b/keyboards/mechwild/bb40/rules.mk new file mode 100644 index 000000000000..37b382337f73 --- /dev/null +++ b/keyboards/mechwild/bb40/rules.mk @@ -0,0 +1,5 @@ +# Build Options +# change yes to no to disable +# + +DEFAULT_FOLDER = mechwild/bb40/f401