Skip to content

Commit 9630a7b

Browse files
bitstarrdrashnanoroadsleftfauxpark
authored
[Keyboard] added KPs BM43 RGB board (#13888)
Co-authored-by: Drashna Jaelre <[email protected]> Co-authored-by: James Young <[email protected]> Co-authored-by: Ryan <[email protected]>
1 parent 0472917 commit 9630a7b

File tree

12 files changed

+481
-0
lines changed

12 files changed

+481
-0
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright 2021 bitstarr
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#include "bm43hsrgb.h"
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* Copyright 2021 bitstarr
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#pragma once
17+
18+
#include "quantum.h"
19+
20+
#define LAYOUT( \
21+
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
22+
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1B, \
23+
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2B, \
24+
K30, K31, K32, K33, K35, K37, K38, K39, K3B \
25+
) { \
26+
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
27+
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, KC_NO, K1B }, \
28+
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, KC_NO, K2B }, \
29+
{ K30, K31, K32, K33, KC_NO, K35, KC_NO, K37, K38, K39, KC_NO, K3B }, \
30+
}
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
Copyright 2021 bitstarr
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
#pragma once
19+
20+
#include "config_common.h"
21+
22+
/* USB Device descriptor parameter */
23+
#define VENDOR_ID 0x4B50
24+
#define PRODUCT_ID 0x6061
25+
#define DEVICE_VER 0x0001
26+
#define MANUFACTURER KPRepublic
27+
#define PRODUCT BM43 Hotswap RGB
28+
29+
/* key matrix size */
30+
#define MATRIX_ROWS 4
31+
#define MATRIX_COLS 12
32+
33+
/*
34+
* Keyboard Matrix Assignments
35+
*
36+
* Change this to how you wired your keyboard
37+
* COLS: AVR pins used for columns, left to right
38+
* ROWS: AVR pins used for rows, top to bottom
39+
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40+
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41+
*
42+
*/
43+
#define MATRIX_ROW_PINS { E6, B6, B4, B5 }
44+
#define MATRIX_COL_PINS { C6, D2, D1, D0, D7, D6, D4, D5, D3, B7, B3, B2 }
45+
46+
#define DIODE_DIRECTION COL2ROW
47+
48+
#define RGB_DI_PIN E2
49+
#ifdef RGB_DI_PIN
50+
#define RGBLED_NUM 53
51+
#define RGBLIGHT_HUE_STEP 8
52+
#define RGBLIGHT_SAT_STEP 8
53+
#define RGBLIGHT_VAL_STEP 8
54+
#define RGBLIGHT_LIMIT_VAL 180 /* The maximum brightness level */
55+
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
56+
57+
#define RGBLIGHT_EFFECT_BREATHING
58+
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
59+
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
60+
#define RGBLIGHT_EFFECT_SNAKE
61+
#define RGBLIGHT_EFFECT_KNIGHT
62+
#define RGBLIGHT_EFFECT_CHRISTMAS
63+
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
64+
#define RGBLIGHT_EFFECT_RGB_TEST
65+
#define RGBLIGHT_EFFECT_ALTERNATING
66+
#endif
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"keyboard_name": "BM43HSRGB",
3+
"url": "",
4+
"maintainer": "qmk",
5+
"layouts": {
6+
"LAYOUT": {
7+
"layout": [
8+
{"label":"K00 (E6,C6)", "x":0, "y":0},
9+
{"label":"K01 (E6,D2)", "x":1, "y":0},
10+
{"label":"K02 (E6,D1)", "x":2, "y":0},
11+
{"label":"K03 (E6,D0)", "x":3, "y":0},
12+
{"label":"K04 (E6,D7)", "x":4, "y":0},
13+
{"label":"K05 (E6,D6)", "x":5, "y":0},
14+
{"label":"K06 (E6,D4)", "x":6, "y":0},
15+
{"label":"K07 (E6,D5)", "x":7, "y":0},
16+
{"label":"K08 (E6,D3)", "x":8, "y":0},
17+
{"label":"K09 (E6,B7)", "x":9, "y":0},
18+
{"label":"K0A (E6,B3)", "x":10, "y":0},
19+
{"label":"K0B (E6,B2)", "x":11, "y":0},
20+
{"label":"K10 (B6,C6)", "x":0, "y":1, "w":1.25},
21+
{"label":"K11 (B6,D2)", "x":1.25, "y":1},
22+
{"label":"K12 (B6,D1)", "x":2.25, "y":1},
23+
{"label":"K13 (B6,D0)", "x":3.25, "y":1},
24+
{"label":"K14 (B6,D7)", "x":4.25, "y":1},
25+
{"label":"K15 (B6,D6)", "x":5.25, "y":1},
26+
{"label":"K16 (B6,D4)", "x":6.25, "y":1},
27+
{"label":"K17 (B6,D5)", "x":7.25, "y":1},
28+
{"label":"K18 (B6,D3)", "x":8.25, "y":1},
29+
{"label":"K19 (B6,B7)", "x":9.25, "y":1},
30+
{"label":"K1B (B6,B2)", "x":10.25, "y":1, "w":1.75},
31+
{"label":"K20 (B4,C6)", "x":0, "y":2, "w":2},
32+
{"label":"K21 (B4,D2)", "x":2, "y":2},
33+
{"label":"K22 (B4,D1)", "x":3, "y":2},
34+
{"label":"K23 (B4,D0)", "x":4, "y":2},
35+
{"label":"K24 (B4,D7)", "x":5, "y":2},
36+
{"label":"K25 (B4,D6)", "x":6, "y":2},
37+
{"label":"K26 (B4,D4)", "x":7, "y":2},
38+
{"label":"K27 (B4,D5)", "x":8, "y":2},
39+
{"label":"K28 (B4,D3)", "x":9, "y":2},
40+
{"label":"K29 (B4,B7)", "x":10, "y":2},
41+
{"label":"K2B (B4,B2)", "x":11, "y":2},
42+
{"label":"K30 (B5,C6)", "x":0, "y":3},
43+
{"label":"K31 (B5,D2)", "x":1, "y":3},
44+
{"label":"K32 (B5,D1)", "x":2, "y":3},
45+
{"label":"K33 (B5,D0)", "x":3, "y":3, "w":2.75},
46+
{"label":"K35 (B5,D6)", "x":5.75, "y":3, "w":2.25},
47+
{"label":"K37 (B5,D5)", "x":8, "y":3},
48+
{"label":"K38 (B5,D3)", "x":9, "y":3},
49+
{"label":"K39 (B5,B7)", "x":10, "y":3},
50+
{"label":"K3B (B5,B2)", "x":11, "y":3}
51+
]
52+
}
53+
}
54+
,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright 2021 bitstarr
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU General Public License as published by
6+
the Free Software Foundation, either version 2 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU General Public License for more details.
13+
14+
You should have received a copy of the GNU General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
#pragma once
18+
19+
#define UNICODE_SELECTED_MODES UC_WINC, UC_WIN, UC_LNX, UC_OSX
20+
#define UNICODE_CYCLE_PERSIST false
21+
22+
#ifdef RGB_DI_PIN
23+
/*== all animations enable ==*/
24+
#undef RGBLIGHT_ANIMATIONS
25+
// /*== or choose animations ==*/
26+
// #define RGBLIGHT_EFFECT_BREATHING
27+
// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
28+
// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
29+
// #define RGBLIGHT_EFFECT_SNAKE
30+
// #define RGBLIGHT_EFFECT_KNIGHT
31+
// #define RGBLIGHT_EFFECT_CHRISTMAS
32+
// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
33+
// #define RGBLIGHT_EFFECT_RGB_TEST
34+
// #define RGBLIGHT_EFFECT_ALTERNATING
35+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* Copyright 2021 bitstarr
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#include QMK_KEYBOARD_H
17+
18+
#define WORD_BACK C(KC_LEFT)
19+
#define WORD_FORWARD C(KC_RIGHT)
20+
21+
enum layers {
22+
_BASE,
23+
_EXT,
24+
_ADV,
25+
_FN,
26+
_UNI,
27+
_UNI2
28+
};
29+
30+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31+
[_BASE] = LAYOUT(
32+
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
33+
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
34+
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
35+
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT(_EXT,KC_SPC), MO(_UNI), MO(_ADV), MO(_FN), KC_RCTL
36+
),
37+
[_EXT] = LAYOUT(
38+
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
39+
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS,
40+
KC_TRNS, KC_F11, KC_F12, KC_NO, KC_NO, KC_GRV, KC_SCLN, KC_QUOT, KC_LBRC, KC_RBRC, KC_BSLS,
41+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS
42+
),
43+
[_ADV] = LAYOUT(
44+
KC_GRV, WORD_BACK, KC_UP, WORD_FORWARD, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGUP, KC_NO, KC_PSCR, KC_DEL,
45+
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_NO, KC_NO, KC_HOME, KC_PGDN, KC_END, KC_NO,
46+
KC_TRNS, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLD, KC_MUTE, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_INS,
47+
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS
48+
),
49+
[_FN] = LAYOUT(
50+
KC_NO, KC_NO, KC_NO, KC_NO, RESET, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
51+
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
52+
KC_NO, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_NO, KC_NO,
53+
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
54+
),
55+
[_UNI] = LAYOUT(
56+
KC_NO, KC_NO, KC_NO, UC(L'€'), UC(L'§'), UC(L'°'), KC_NO, UC(L'ü'), KC_NO, UC(L'ö'), UC(L'–'), KC_NO,
57+
KC_NO, UC(L'ä'), UC(L'ß'), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
58+
MO(_UNI2), UC(L'„'), UC(L'“'), UC(L'”'), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, UC(L'…'), KC_NO,
59+
KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, UC_MOD
60+
),
61+
[_UNI2] = LAYOUT(
62+
KC_NO, KC_NO, KC_NO, UC(L'é'), KC_NO, KC_NO, KC_NO, UC(L'Ü'), KC_NO, UC(L'Ö'), UC(L'—'), KC_NO,
63+
KC_NO, UC(L'Ä'), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
64+
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
65+
KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO
66+
),
67+
};
68+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Personal Layout of [bitstarr](https://github.com/bitstarr)
2+
3+
I use an US ANSI Layout and set the OS to the US Keyboard. Since I'm german, I need to use some special characters once in a while - that's what the UNI and UNI2 Layers are for. Under Windows we have to rely on [WinCompose](https://github.com/samhocevar/wincompose) to work as intended.
4+
5+
qmk compile -kb kprepublic/bm43hsrgb -km bitstarr
6+
7+
## 0 Qwerty
8+
```
9+
,----------------------------------------------------------------------------.
10+
| ESC | Q | W | E | R | T | Y | U | I | O | P | Bscp |
11+
|----------------------------------------------------------------------------+
12+
| Tab | A | S | D | F | G | H | J | K | L | Enter |
13+
|----------------------------------------------------------------------------+
14+
| Shift | Z | X | C | V | B | N | M | , | . | / |
15+
|----------------------------------------------------------------------------+
16+
| Ctrl | Win | Alt | Space | Space/EXT | UNI | ADV | FN | Ctrl |
17+
`----------------------------------------------------------------------------'
18+
```
19+
20+
## 1 EXT Layer
21+
```
22+
EXT Layer
23+
,----------------------------------------------------------------------------.
24+
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | O | - | + |
25+
|----------------------------------------------------------------------------+
26+
| F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | Enter |
27+
|----------------------------------------------------------------------------+
28+
| Shift | F11 | F12 | | | ` | ; | ' | [ | ] | \ |
29+
|----------------------------------------------------------------------------+
30+
| Ctrl | Win | Alt | Space | | | | | Ctrl |
31+
`----------------------------------------------------------------------------'
32+
```
33+
34+
* Numbers
35+
* F-Keys
36+
* Brackets, Punctuation, Special Characters
37+
38+
## 2 ADV Layer
39+
```
40+
ADV Layer
41+
,----------------------------------------------------------------------------.
42+
| ` | W→ | ↑ | W← | | | | | ⇞ | | PS | Del |
43+
|----------------------------------------------------------------------------+
44+
| Tab | ← | ↓ | → | | | | ↖ | ⇟ | ↘︎ | |
45+
|----------------------------------------------------------------------------+
46+
| Shift | ⏮ | ⏯ | ⏭ | 🔉 | 🔇 | 🔊 | | | | Ins |
47+
|----------------------------------------------------------------------------+
48+
| Ctrl | Win | Alt | Space | | | | | Ctrl |
49+
`----------------------------------------------------------------------------'
50+
```
51+
52+
* Arrows, Word skips
53+
* Print Screen, Page Up, Page Down
54+
* Home, End, Ins, Del
55+
* Media
56+
57+
## 3 FN Layer
58+
```
59+
FN Layer
60+
,----------------------------------------------------------------------------.
61+
| | | | | RESET | | | | | | | |
62+
|----------------------------------------------------------------------------+
63+
| | | | | | | | | | | |
64+
|----------------------------------------------------------------------------+
65+
| | RGB_T | RGB_M | H+ | H- | S+ | S- | B+ | B- | | |
66+
|----------------------------------------------------------------------------+
67+
| | | | | | | | | |
68+
`----------------------------------------------------------------------------'
69+
```
70+
71+
* RGB, Toggle, Mode, Hue, Saturation, Brightness
72+
* Reset
73+
74+
## 4 UNI Layer
75+
```
76+
UNI Layer
77+
,----------------------------------------------------------------------------.
78+
| | | | € | § | ° | | ü | | ö | – | |
79+
|----------------------------------------------------------------------------+
80+
| | ä | ß | | | | | | | | |
81+
|----------------------------------------------------------------------------+
82+
| UNI2 | „ | “ | ” | | | | | | … | |
83+
|----------------------------------------------------------------------------+
84+
| | | | Space | Space | | | | Mode |
85+
`----------------------------------------------------------------------------'
86+
```
87+
88+
* Umlauts
89+
* Punctuation
90+
* Special Characters
91+
* Switching [Input Modes](https://beta.docs.qmk.fm/using-qmk/software-features/feature_unicode#2-input-modes-id-input-modes) (UC_WINC, UC_WIN, UC_LNX, UC_OSX)
92+
93+
## 5 UNI2 Layer
94+
```
95+
UNI2 Layer
96+
,----------------------------------------------------------------------------.
97+
| | | | é | | | | Ü | | Ü | — | |
98+
|----------------------------------------------------------------------------+
99+
| | Ä | | | | | | | | | |
100+
|----------------------------------------------------------------------------+
101+
| UNI2 | | | | | | | | | | |
102+
|----------------------------------------------------------------------------+
103+
| | | | Space | Space | | | | |
104+
`----------------------------------------------------------------------------'
105+
```
106+
107+
* Capital Umlauts
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UNICODE_ENABLE = yes

0 commit comments

Comments
 (0)