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

[keyboard] mechwild/bbpad #24072

Merged
merged 2 commits into from
Jul 7, 2024
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
10 changes: 10 additions & 0 deletions keyboards/mechwild/bbpad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2024 QMK Contributors (@qmk)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define WS2812_PWM_DRIVER PWMD4
#define WS2812_PWM_CHANNEL 1
#define WS2812_PWM_PAL_MODE 2
#define WS2812_DMA_STREAM STM32_DMA1_STREAM6
#define WS2812_DMA_CHANNEL 2
3 changes: 3 additions & 0 deletions keyboards/mechwild/bbpad/f401/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"development_board": "blackpill_f401"
}
3 changes: 3 additions & 0 deletions keyboards/mechwild/bbpad/f411/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"development_board": "blackpill_f411"
}
8 changes: 8 additions & 0 deletions keyboards/mechwild/bbpad/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright 2023 QMK Contributors (@qmk)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define HAL_USE_PWM TRUE

#include_next <halconf.h>
195 changes: 195 additions & 0 deletions keyboards/mechwild/bbpad/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
{
"manufacturer": "MechWild",
"keyboard_name": "BBPad",
"maintainer": "kylemccreery",
"bootloader_instructions": "Hold down the BOOT button, then tap the NRST button on the BlackPill. Avoid touching the A11 and A12 pins.",
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B1", "pin_b": "B0"}
]
},
"features": {
"bootmagic": true,
"encoder": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"matrix_pins": {
"cols": ["A4", "A3", "A2", "A1", "C15"],
"rows": ["B12", "B13", "B14", "B15", "A8"]
},
"rgb_matrix": {
"animations": {
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_sat": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"band_val": true,
"breathing": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"cycle_up_down": true,
"digital_rain": true,
"dual_beacon": true,
"flower_blooming": true,
"gradient_left_right": true,
"gradient_up_down": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"jellybean_raindrops": true,
"multisplash": true,
"pixel_flow": true,
"pixel_fractal": true,
"pixel_rain": true,
"rainbow_beacon": true,
"rainbow_moving_chevron": true,
"rainbow_pinwheels": true,
"raindrops": true,
"riverflow": true,
"solid_multisplash": true,
"solid_reactive": true,
"solid_reactive_cross": true,
"solid_reactive_multicross": true,
"solid_reactive_multinexus": true,
"solid_reactive_multiwide": true,
"solid_reactive_nexus": true,
"solid_reactive_simple": true,
"solid_reactive_wide": true,
"solid_splash": true,
"splash": true,
"starlight": true,
"starlight_dual_hue": true,
"starlight_dual_sat": true,
"typing_heatmap": true
},
"center_point": [112, 75],
"driver": "ws2812",
"layout": [
{"x": 195, "y": 53, "flags": 2},
{"x": 195, "y": 97, "flags": 2},
{"x": 142, "y": 144, "flags": 2},
{"x": 74, "y": 144, "flags": 2},
{"x": 8, "y": 97, "flags": 2},
{"x": 8, "y": 53, "flags": 2},
{"x": 74, "y": 9, "flags": 2},
{"x": 142, "y": 9, "flags": 2},
{"matrix": [0, 0], "x": 147, "y": 24, "flags": 4},
{"matrix": [0, 1], "x": 147, "y": 58, "flags": 4},
{"matrix": [0, 2], "x": 147, "y": 90, "flags": 4},
{"matrix": [0, 3], "x": 147, "y": 124, "flags": 4},
{"matrix": [1, 3], "x": 115, "y": 124, "flags": 4},
{"matrix": [1, 2], "x": 115, "y": 90, "flags": 4},
{"matrix": [1, 1], "x": 115, "y": 58, "flags": 4},
{"matrix": [1, 0], "x": 115, "y": 24, "flags": 4},
{"matrix": [2, 0], "x": 83, "y": 24, "flags": 4},
{"matrix": [2, 1], "x": 83, "y": 58, "flags": 4},
{"matrix": [2, 2], "x": 83, "y": 90, "flags": 4},
{"matrix": [2, 3], "x": 83, "y": 124, "flags": 4},
{"matrix": [3, 3], "x": 51, "y": 124, "flags": 4},
{"matrix": [3, 2], "x": 51, "y": 90, "flags": 4},
{"matrix": [3, 1], "x": 51, "y": 58, "flags": 4},
{"matrix": [3, 0], "x": 51, "y": 24, "flags": 4},
{"matrix": [4, 0], "x": 17, "y": 31, "flags": 4},
{"matrix": [4, 1], "x": 17, "y": 53, "flags": 4},
{"matrix": [4, 2], "x": 17, "y": 90, "flags": 4},
{"matrix": [4, 3], "x": 17, "y": 124, "flags": 4}
],
"max_brightness": 120
},
"url": "https://mechwild.com/product/bbpad/",
"usb": {
"device_version": "1.0.0",
"pid": "0x1713",
"vid": "0x6D77"
},
"ws2812": {
"driver": "pwm",
"pin": "B6"
},
"layout_aliases": {
"LAYOUT": "LAYOUT_vert"
},
"layouts": {
"LAYOUT_horiz": {
"layout": [
{"matrix": [4, 0], "x": 0, "y": 0},
{"matrix": [3, 0], "x": 1, "y": 0},
{"matrix": [2, 0], "x": 2, "y": 0},
{"matrix": [1, 0], "x": 3, "y": 0},
{"matrix": [0, 0], "x": 4, "y": 0},
{"matrix": [4, 1], "x": 0, "y": 1},
{"matrix": [3, 1], "x": 1, "y": 1},
{"matrix": [2, 1], "x": 2, "y": 1},
{"matrix": [1, 1], "x": 3, "y": 1},
{"matrix": [0, 1], "x": 4, "y": 1},
{"matrix": [4, 2], "x": 0, "y": 2},
{"matrix": [3, 2], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [1, 2], "x": 3, "y": 2},
{"matrix": [0, 2], "x": 4, "y": 2},
{"matrix": [4, 3], "x": 0, "y": 3},
{"matrix": [3, 3], "x": 1, "y": 3},
{"matrix": [2, 3], "x": 2, "y": 3},
{"matrix": [1, 3], "x": 3, "y": 3},
{"matrix": [0, 3], "x": 4, "y": 3},
{"matrix": [0, 4], "x": 5, "y": 3, "encoder": 0}
]
},
"LAYOUT_numpad": {
"layout": [
{"matrix": [0, 4], "x": 3, "y": 0, "encoder": 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": [2, 3], "x": 3, "y": 2, "h": 2},
{"matrix": [2, 0], "x": 0, "y": 3},
{"matrix": [2, 1], "x": 1, "y": 3},
{"matrix": [2, 2], "x": 2, "y": 3},
{"matrix": [3, 0], "x": 0, "y": 4},
{"matrix": [3, 1], "x": 1, "y": 4},
{"matrix": [3, 2], "x": 2, "y": 4},
{"matrix": [4, 3], "x": 3, "y": 4, "h": 2},
{"matrix": [4, 0], "x": 0, "y": 5, "w": 2},
{"matrix": [4, 2], "x": 2, "y": 5}
]
},
"LAYOUT_vert": {
"layout": [
{"matrix": [0, 4], "x": 3, "y": 0, "encoder": 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}
]
}
}
}
29 changes: 29 additions & 0 deletions keyboards/mechwild/bbpad/keymaps/default/keymap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"keyboard": "mechwild/bbpad",
"keymap": "default",
"version": 1,
"layout": "LAYOUT_horiz",
"layers": [
[
"KC_P7", "KC_P8", "KC_P9", "KC_PSLS", "KC_CALC",
"KC_P4", "KC_P5", "KC_P6", "KC_PAST", "TG(1)",
"KC_P1", "KC_P2", "KC_P3", "KC_PPLS", "KC_BSPC",
"KC_P0", "KC_PDOT", "KC_NUM", "KC_PMNS", "KC_PENT", "KC_MUTE"
],
[
"KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS",
"RGB_RMOD", "KC_TRNS", "RGB_MOD", "KC_TRNS", "KC_TRNS",
"KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS",
"KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_NUM", "RGB_TOG"
]
],
"config": {
"features": {
"encoder_map": true
}
},
"encoders": [
[{"ccw": "KC_VOLD", "cw": "KC_VOLU"}],
[{"ccw": "RGB_VAD", "cw": "RGB_VAI"}]
]
}
10 changes: 10 additions & 0 deletions keyboards/mechwild/bbpad/mcuconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2023 QMK Contributors (@qmk)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include_next <mcuconf.h>

// WS2812
#undef STM32_PWM_USE_TIM4
#define STM32_PWM_USE_TIM4 TRUE
23 changes: 23 additions & 0 deletions keyboards/mechwild/bbpad/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# BBPad

![BBPad](https://i.imgur.com/FTrK1TC.png)

A completely normal BlackPill-powered DIY numpad kit.

The `f401` version is the standard for this kit, using an STM32F401 BlackPill. The `f411` version will not run on an STM32F401 BlackPill; if in doubt, use `f401`.

* Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery)
* Hardware Supported: BBPad 1.0
* Hardware Availability: [BBPad on MechWild](https://mechwild.com/product/bbpad/)

Make example for this keyboard (after setting up your build environment):

make mechwild/bbpad/f401:default
make mechwild/bbpad/f411:default

Flashing example for this keyboard:

make mechwild/bbpad/f401:default:flash
make mechwild/bbpad/f411: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).
Loading