Skip to content

Commit

Permalink
Add KPrepublic BM16A v2 (#19194)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored Dec 9, 2022
1 parent aa06a6e commit 8c12559
Show file tree
Hide file tree
Showing 22 changed files with 273 additions and 237 deletions.
16 changes: 0 additions & 16 deletions keyboards/kprepublic/bm16a/bm16a.c

This file was deleted.

39 changes: 0 additions & 39 deletions keyboards/kprepublic/bm16a/bm16a.h

This file was deleted.

128 changes: 0 additions & 128 deletions keyboards/kprepublic/bm16a/config.h

This file was deleted.

33 changes: 0 additions & 33 deletions keyboards/kprepublic/bm16a/info.json

This file was deleted.

20 changes: 0 additions & 20 deletions keyboards/kprepublic/bm16a/rules.mk

This file was deleted.

75 changes: 75 additions & 0 deletions keyboards/kprepublic/bm16a/v1/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"keyboard_name": "bm16a",
"manufacturer": "KPrepublic",
"url": "",
"maintainer": "qmk",
"usb": {
"vid": "0x4B50",
"pid": "0x016A",
"device_version": "0.0.1"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"features": {
"bootmagic": true,
"mousekey": true,
"extrakey": true,
"console": false,
"command": false,
"nkro": true,
"backlight": true,
"rgblight": true,
"audio": false
},
"matrix_pins": {
"rows": ["D3", "D5", "D1", "D2"],
"cols": ["D6", "D4", "D7", "B4"]
},
"diode_direction": "COL2ROW",
"backlight": {
"pin": "B6",
"levels": 5
},
"rgblight": {
"pin": "E2",
"led_count": 4,
"animations": {
"breathing": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"snake": true,
"knight": true,
"christmas": true,
"static_gradient": true,
"rgb_test": true,
"alternating": true,
"twinkle": true
}
},
"community_layouts": ["ortho_4x4"],
"layouts": {
"LAYOUT_ortho_4x4": {
"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": [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": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "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, 3], "x": 3, "y": 3}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ A 16 key macropad, with USB C, RGB underglow and backlight.

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

make kprepublic/bm16a:default
make kprepublic/bm16a/v1:default

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).
1 change: 1 addition & 0 deletions keyboards/kprepublic/bm16a/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank
12 changes: 12 additions & 0 deletions keyboards/kprepublic/bm16a/v2/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright 2022 fauxpark (@fauxpark)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define RGB_DI_PIN B9
#define RGB_MATRIX_LED_COUNT 16

#define WS2812_PWM_DRIVER PWMD4
#define WS2812_PWM_CHANNEL 4
#define WS2812_DMA_STREAM STM32_DMA1_STREAM7
#define WS2812_DMA_CHANNEL 7
8 changes: 8 additions & 0 deletions keyboards/kprepublic/bm16a/v2/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright 2022 fauxpark (@fauxpark)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define HAL_USE_PWM TRUE

#include_next <halconf.h>
Loading

0 comments on commit 8c12559

Please sign in to comment.