Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial bbpad commit #4

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions keyboards/mechwild/bbpad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright 2022 Kyle McCreery (@kylemccreery)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

/* RGB settings, uncomment this define to enable RGB */
#define WS2812_DI_PIN B6
#define RGB_MATRIX_LED_COUNT 28

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
6 changes: 6 additions & 0 deletions keyboards/mechwild/bbpad/f401/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# MCU name
MCU = STM32F401
BOARD = BLACKPILL_STM32_F401

# Bootloader selection
BOOTLOADER = stm32-dfu
6 changes: 6 additions & 0 deletions keyboards/mechwild/bbpad/f411/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# MCU name
MCU = STM32F411
BOARD = BLACKPILL_STM32_F411

# Bootloader selection
BOOTLOADER = stm32-dfu
111 changes: 111 additions & 0 deletions keyboards/mechwild/bbpad/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"manufacturer": "MechWild",
"keyboard_name": "BBPad",
"url": "https://mechwild.com/product/bbpad/",
"maintainer": "kylemccreery",
"usb": {
"device_version": "1.0.0",
"pid": "0x1711",
"vid": "0x6D77"
},
"features": {
"bootmagic": true,
"mousekey": true,
"extrakey": true,
"console": false,
"command": false,
"nkro": true,
"encoder": true,
"rgb_matrix": true
},
"matrix_pins": {
"rows": ["B12", "B13", "B14", "B15", "A8"],
"cols": ["A4", "A3", "A2", "A1", "C15"]
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B1", "pin_b": "B0"}
]
},
"rgb_matrix": {
"driver": "WS2812",
"max_brightness": 120,
"animations": {
"breathing": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"rainbow_moving_chevron": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"raindrops": true,
"typing_heatmap": true,
"solid_reactive_simple": true,
"solid_reactive": true,
"solid_reactive_cross": true,
"multisplash": true
},
"layout":[
{"flags": 2, "x":28, "y":0},
{"flags": 2, "x":196, "y":0},
{"flags": 2, "x":224, "y":21},
{"flags": 2, "x":224, "y":42},
{"flags": 2, "x":196, "y":64},
{"flags": 2, "x":28, "y":64},
{"flags": 2, "x":0, "y":42},
{"flags": 2, "x":0, "y":21},
{ "flags": 4, "matrix": [0, 0], "x": 28, "y": 45},
{ "flags": 4, "matrix": [0, 1], "x": 84, "y": 45},
{ "flags": 4, "matrix": [0, 2], "x": 140, "y": 45},
{ "flags": 4, "matrix": [0, 3], "x": 196, "y": 45},
{ "flags": 4, "matrix": [1, 0], "x": 28, "y": 90},
{ "flags": 4, "matrix": [1, 1], "x": 84, "y": 90},
{ "flags": 4, "matrix": [1, 2], "x": 140, "y": 90},
{ "flags": 4, "matrix": [1, 3], "x": 196, "y": 90},
{ "flags": 4, "matrix": [2, 3], "x": 196, "y": 134},
{ "flags": 4, "matrix": [2, 2], "x": 140, "y": 134},
{ "flags": 4, "matrix": [2, 1], "x": 84, "y": 134},
{ "flags": 4, "matrix": [2, 0], "x": 28, "y": 134},
{ "flags": 4, "matrix": [3, 3], "x": 196, "y": 179},
{ "flags": 4, "matrix": [3, 2], "x": 140, "y": 179},
{ "flags": 4, "matrix": [3, 1], "x": 84, "y": 179},
{ "flags": 4, "matrix": [3, 0], "x": 28, "y": 179},
{ "flags": 4, "matrix": [4, 0], "x": 28, "y": 224},
{ "flags": 4, "matrix": [4, 1], "x": 84, "y": 224},
{ "flags": 4, "matrix": [4, 2], "x": 140, "y": 224},
{ "flags": 4, "matrix": [4, 3], "x": 196, "y": 224}
]
},
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 4], "x": 3, "y": 0},
{"matrix": [0, 0], "x": 0, "y": 1},
{"matrix": [0, 1], "x": 1, "y": 1},
{"matrix": [0, 2], "x": 2, "y": 1},
{"matrix": [0, 3], "x": 3, "y": 1},
{"matrix": [1, 0], "x": 0, "y": 2},
{"matrix": [1, 1], "x": 1, "y": 2},
{"matrix": [1, 2], "x": 2, "y": 2},
{"matrix": [1, 3], "x": 3, "y": 2},
{"matrix": [2, 0], "x": 0, "y": 3},
{"matrix": [2, 1], "x": 1, "y": 3},
{"matrix": [2, 2], "x": 2, "y": 3},
{"matrix": [2, 3], "x": 3, "y": 3},
{"matrix": [3, 0], "x": 0, "y": 4},
{"matrix": [3, 1], "x": 1, "y": 4},
{"matrix": [3, 2], "x": 2, "y": 4},
{"matrix": [3, 3], "x": 3, "y": 4},
{"matrix": [4, 0], "x": 0, "y": 5},
{"matrix": [4, 1], "x": 1, "y": 5},
{"matrix": [4, 2], "x": 2, "y": 5},
{"matrix": [4, 3], "x": 3, "y": 5}
]
}
}
}
38 changes: 38 additions & 0 deletions keyboards/mechwild/bbpad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Copyright 2022 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_MUTE,
MO(1), KC_PSLS, KC_PAST, KC_BSPC,
KC_P7, KC_P8, KC_P9, KC_PMNS,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, RGB_TOG, KC_PDOT, KC_PENT
),
[_FN1] = LAYOUT(
RGB_TOG,
_______, _______, _______, _______,
_______, _______, _______, _______,
RGB_RMOD, _______, RGB_MOD, _______,
_______, _______, _______, _______,
_______, _______, KC_NUM, _______
)
};

#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
19 changes: 19 additions & 0 deletions keyboards/mechwild/bbpad/readme.md
Original file line number Diff line number Diff line change
@@ -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).
5 changes: 5 additions & 0 deletions keyboards/mechwild/bbpad/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Build Options
# change yes to no to disable
#

DEFAULT_FOLDER = mechwild/bbpad/f401