summaryrefslogtreecommitdiffstats
path: root/keyboards/kprepublic/bm80hsrgb
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kprepublic/bm80hsrgb')
-rw-r--r--keyboards/kprepublic/bm80hsrgb/bm80hsrgb.c2
-rw-r--r--keyboards/kprepublic/bm80hsrgb/bm80hsrgb.h43
-rw-r--r--keyboards/kprepublic/bm80hsrgb/config.h22
-rw-r--r--keyboards/kprepublic/bm80hsrgb/info.json192
-rw-r--r--keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h1
5 files changed, 106 insertions, 154 deletions
diff --git a/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.c b/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.c
index 3455efd84c..2ec020739a 100644
--- a/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.c
+++ b/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.c
@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "bm80hsrgb.h"
+#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
diff --git a/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.h b/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.h
deleted file mode 100644
index 450befe882..0000000000
--- a/keyboards/kprepublic/bm80hsrgb/bm80hsrgb.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/* Copyright 2021 peepeetee
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#include "quantum.h"
-
-/* This is a shortcut to help you visually see your layout.
- *
- * The first section contains all of the arguments representing the physical
- * layout of the board and position of the keys.
- *
- * The second converts the arguments into a two-dimensional array which
- * represents the switch matrix.
- */
-#define LAYOUT_tkl_ansi( \
- K0_0, K0_2, K0_3, K0_4, K0_5, K0_7, K0_8, K0_9, K0_A, K0_B, K0_C, K3_C, K0_D, K0_E, K0_F, K0_10, \
- K1_0, K1_1, K1_2, K1_3, K1_4, K1_5, K1_6, K1_7, K1_8, K1_9, K1_A, K1_B, K1_C, K1_D, K1_E, K1_F, K1_10, \
- K2_0, K2_1, K2_2, K2_3, K2_4, K2_5, K2_6, K2_7, K2_8, K2_9, K2_A, K2_B, K2_C, K2_D, K2_E, K2_F, K2_10, \
- K3_0, K3_1, K3_2, K3_3, K3_4, K3_5, K3_6, K3_7, K3_8, K3_9, K3_A, K3_B, K3_D, \
- K4_0, K4_1, K4_2, K4_3, K4_4, K4_5, K4_6, K4_7, K4_8, K4_9, K4_A, K4_C, K4_F, \
- K5_0, K5_1, K5_2, K5_5, K5_9, K5_A, K5_B, K5_C, K5_D, K5_F, K5_10 \
-) { \
- { K0_0, KC_NO, K0_2, K0_3, K0_4, K0_5, KC_NO, K0_7, K0_8, K0_9, K0_A, K0_B, K0_C, K0_D, K0_E, K0_F, K0_10 }, \
- { K1_0, K1_1, K1_2, K1_3, K1_4, K1_5, K1_6, K1_7, K1_8, K1_9, K1_A, K1_B, K1_C, K1_D, K1_E, K1_F, K1_10 }, \
- { K2_0, K2_1, K2_2, K2_3, K2_4, K2_5, K2_6, K2_7, K2_8, K2_9, K2_A, K2_B, K2_C, K2_D, K2_E, K2_F, K2_10 }, \
- { K3_0, K3_1, K3_2, K3_3, K3_4, K3_5, K3_6, K3_7, K3_8, K3_9, K3_A, K3_B, K3_C, K3_D, KC_NO, KC_NO, KC_NO }, \
- { K4_0, K4_1, K4_2, K4_3, K4_4, K4_5, K4_6, K4_7, K4_8, K4_9, K4_A, KC_NO, K4_C, KC_NO, KC_NO, K4_F, KC_NO }, \
- { K5_0, K5_1, K5_2, KC_NO, KC_NO, K5_5, KC_NO, KC_NO, KC_NO, K5_9, K5_A, K5_B, K5_C, K5_D, KC_NO, K5_F, K5_10 } \
-}
diff --git a/keyboards/kprepublic/bm80hsrgb/config.h b/keyboards/kprepublic/bm80hsrgb/config.h
index d42521fb9a..8ae02d0c63 100644
--- a/keyboards/kprepublic/bm80hsrgb/config.h
+++ b/keyboards/kprepublic/bm80hsrgb/config.h
@@ -17,28 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define MATRIX_ROW_PINS { B3, B2, B1, B0, C6, C7 }
-#define MATRIX_COL_PINS { F0, F1, F4, D7, D6, D4, D5, D3, D2, F5, F6, F7, D1, D0, B4, B5, B6 }
-
-/* COL2ROW, ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
#define RGB_DI_PIN E2
// The number of LEDs connected
#define RGB_MATRIX_LED_COUNT 87
-#ifdef RGB_DI_PIN
#define RGBLED_NUM 87
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
//#define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
@@ -102,10 +84,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
// does not work for some reason, might revisit
-
-
-#endif
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/kprepublic/bm80hsrgb/info.json b/keyboards/kprepublic/bm80hsrgb/info.json
index 1cd8c7cc87..fa9b724724 100644
--- a/keyboards/kprepublic/bm80hsrgb/info.json
+++ b/keyboards/kprepublic/bm80hsrgb/info.json
@@ -8,6 +8,11 @@
"pid": "0xEF83",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["F0", "F1", "F4", "D7", "D6", "D4", "D5", "D3", "D2", "F5", "F6", "F7", "D1", "D0", "B4", "B5", "B6"],
+ "rows": ["B3", "B2", "B1", "B0", "C6", "C7"]
+ },
+ "diode_direction": "COL2ROW",
"indicators": {
"caps_lock": "E6",
"on_state": 0
@@ -18,93 +23,106 @@
"layouts": {
"LAYOUT_tkl_ansi": {
"layout": [
- {"label":"K0_0 (B3,F0)", "x":0, "y":0},
- {"label":"K0_2 (B3,F4)", "x":2, "y":0},
- {"label":"K0_3 (B3,D7)", "x":3, "y":0},
- {"label":"K0_4 (B3,D6)", "x":4, "y":0},
- {"label":"K0_5 (B3,D4)", "x":5, "y":0},
- {"label":"K0_7 (B3,D3)", "x":6.5, "y":0},
- {"label":"K0_8 (B3,D2)", "x":7.5, "y":0},
- {"label":"K0_9 (B3,F5)", "x":8.5, "y":0},
- {"label":"K0_A (B3,F6)", "x":9.5, "y":0},
- {"label":"K0_B (B3,F7)", "x":11, "y":0},
- {"label":"K0_C (B3,D1)", "x":12, "y":0},
- {"label":"K3_C (B0,D1)", "x":13, "y":0},
- {"label":"K0_D (B3,D0)", "x":14, "y":0},
- {"label":"K0_E (B3,B4)", "x":15.25, "y":0},
- {"label":"K0_F (B3,B5)", "x":16.25, "y":0},
- {"label":"K0_10 (B3,B6)", "x":17.25, "y":0},
- {"label":"K1_0 (B2,F0)", "x":0, "y":1.5},
- {"label":"K1_1 (B2,F1)", "x":1, "y":1.5},
- {"label":"K1_2 (B2,F4)", "x":2, "y":1.5},
- {"label":"K1_3 (B2,D7)", "x":3, "y":1.5},
- {"label":"K1_4 (B2,D6)", "x":4, "y":1.5},
- {"label":"K1_5 (B2,D4)", "x":5, "y":1.5},
- {"label":"K1_6 (B2,D5)", "x":6, "y":1.5},
- {"label":"K1_7 (B2,D3)", "x":7, "y":1.5},
- {"label":"K1_8 (B2,D2)", "x":8, "y":1.5},
- {"label":"K1_9 (B2,F5)", "x":9, "y":1.5},
- {"label":"K1_A (B2,F6)", "x":10, "y":1.5},
- {"label":"K1_B (B2,F7)", "x":11, "y":1.5},
- {"label":"K1_C (B2,D1)", "x":12, "y":1.5},
- {"label":"K1_D (B2,D0)", "x":13, "y":1.5, "w":2},
- {"label":"K1_E (B2,B4)", "x":15.25, "y":1.5},
- {"label":"K1_F (B2,B5)", "x":16.25, "y":1.5},
- {"label":"K1_10 (B2,B6)", "x":17.25, "y":1.5},
- {"label":"K2_0 (B1,F0)", "x":0, "y":2.5, "w":1.5},
- {"label":"K2_1 (B1,F1)", "x":1.5, "y":2.5},
- {"label":"K2_2 (B1,F4)", "x":2.5, "y":2.5},
- {"label":"K2_3 (B1,D7)", "x":3.5, "y":2.5},
- {"label":"K2_4 (B1,D6)", "x":4.5, "y":2.5},
- {"label":"K2_5 (B1,D4)", "x":5.5, "y":2.5},
- {"label":"K2_6 (B1,D5)", "x":6.5, "y":2.5},
- {"label":"K2_7 (B1,D3)", "x":7.5, "y":2.5},
- {"label":"K2_8 (B1,D2)", "x":8.5, "y":2.5},
- {"label":"K2_9 (B1,F5)", "x":9.5, "y":2.5},
- {"label":"K2_A (B1,F6)", "x":10.5, "y":2.5},
- {"label":"K2_B (B1,F7)", "x":11.5, "y":2.5},
- {"label":"K2_C (B1,D1)", "x":12.5, "y":2.5},
- {"label":"K2_D (B1,D0)", "x":13.5, "y":2.5, "w":1.5},
- {"label":"K2_E (B1,B4)", "x":15.25, "y":2.5},
- {"label":"K2_F (B1,B5)", "x":16.25, "y":2.5},
- {"label":"K2_10 (B1,B6)", "x":17.25, "y":2.5},
- {"label":"K3_0 (B0,F0)", "x":0, "y":3.5, "w":1.75},
- {"label":"K3_1 (B0,F1)", "x":1.75, "y":3.5},
- {"label":"K3_2 (B0,F4)", "x":2.75, "y":3.5},
- {"label":"K3_3 (B0,D7)", "x":3.75, "y":3.5},
- {"label":"K3_4 (B0,D6)", "x":4.75, "y":3.5},
- {"label":"K3_5 (B0,D4)", "x":5.75, "y":3.5},
- {"label":"K3_6 (B0,D5)", "x":6.75, "y":3.5},
- {"label":"K3_7 (B0,D3)", "x":7.75, "y":3.5},
- {"label":"K3_8 (B0,D2)", "x":8.75, "y":3.5},
- {"label":"K3_9 (B0,F5)", "x":9.75, "y":3.5},
- {"label":"K3_A (B0,F6)", "x":10.75, "y":3.5},
- {"label":"K3_B (B0,F7)", "x":11.75, "y":3.5},
- {"label":"K3_D (B0,D0)", "x":12.75, "y":3.5, "w":2.25},
- {"label":"K4_0 (C6,F0)", "x":0, "y":4.5, "w":2.25},
- {"label":"K4_1 (C6,F1)", "x":2.25, "y":4.5},
- {"label":"K4_2 (C6,F4)", "x":3.25, "y":4.5},
- {"label":"K4_3 (C6,D7)", "x":4.25, "y":4.5},
- {"label":"K4_4 (C6,D6)", "x":5.25, "y":4.5},
- {"label":"K4_5 (C6,D4)", "x":6.25, "y":4.5},
- {"label":"K4_6 (C6,D5)", "x":7.25, "y":4.5},
- {"label":"K4_7 (C6,D3)", "x":8.25, "y":4.5},
- {"label":"K4_8 (C6,D2)", "x":9.25, "y":4.5},
- {"label":"K4_9 (C6,F5)", "x":10.25, "y":4.5},
- {"label":"K4_A (C6,F6)", "x":11.25, "y":4.5},
- {"label":"K4_C (C6,D1)", "x":12.25, "y":4.5, "w":2.75},
- {"label":"K4_F (C6,B5)", "x":16.25, "y":4.5},
- {"label":"K5_0 (C7,F0)", "x":0, "y":5.5, "w":1.25},
- {"label":"K5_1 (C7,F1)", "x":1.25, "y":5.5, "w":1.25},
- {"label":"K5_2 (C7,F4)", "x":2.5, "y":5.5, "w":1.25},
- {"label":"K5_5 (C7,D4)", "x":3.75, "y":5.5, "w":6.25},
- {"label":"K5_9 (C7,F5)", "x":10, "y":5.5, "w":1.25},
- {"label":"K5_A (C7,F6)", "x":11.25, "y":5.5, "w":1.25},
- {"label":"K5_B (C7,F7)", "x":12.5, "y":5.5, "w":1.25},
- {"label":"K5_C (C7,D1)", "x":13.75, "y":5.5, "w":1.25},
- {"label":"K5_D (C7,D0)", "x":15.25, "y":5.5},
- {"label":"K5_F (C7,B5)", "x":16.25, "y":5.5},
- {"label":"K5_10 (C7,B6)", "x":17.25, "y":5.5}
+ {"matrix": [0, 0], "x": 0, "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, 7], "x": 6.5, "y": 0},
+ {"matrix": [0, 8], "x": 7.5, "y": 0},
+ {"matrix": [0, 9], "x": 8.5, "y": 0},
+ {"matrix": [0, 10], "x": 9.5, "y": 0},
+
+ {"matrix": [0, 11], "x": 11, "y": 0},
+ {"matrix": [0, 12], "x": 12, "y": 0},
+ {"matrix": [3, 12], "x": 13, "y": 0},
+ {"matrix": [0, 13], "x": 14, "y": 0},
+
+ {"matrix": [0, 14], "x": 15.25, "y": 0},
+ {"matrix": [0, 15], "x": 16.25, "y": 0},
+ {"matrix": [0, 16], "x": 17.25, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1.5},
+ {"matrix": [1, 1], "x": 1, "y": 1.5},
+ {"matrix": [1, 2], "x": 2, "y": 1.5},
+ {"matrix": [1, 3], "x": 3, "y": 1.5},
+ {"matrix": [1, 4], "x": 4, "y": 1.5},
+ {"matrix": [1, 5], "x": 5, "y": 1.5},
+ {"matrix": [1, 6], "x": 6, "y": 1.5},
+ {"matrix": [1, 7], "x": 7, "y": 1.5},
+ {"matrix": [1, 8], "x": 8, "y": 1.5},
+ {"matrix": [1, 9], "x": 9, "y": 1.5},
+ {"matrix": [1, 10], "x": 10, "y": 1.5},
+ {"matrix": [1, 11], "x": 11, "y": 1.5},
+ {"matrix": [1, 12], "x": 12, "y": 1.5},
+ {"matrix": [1, 13], "x": 13, "y": 1.5, "w": 2},
+
+ {"matrix": [1, 14], "x": 15.25, "y": 1.5},
+ {"matrix": [1, 15], "x": 16.25, "y": 1.5},
+ {"matrix": [1, 16], "x": 17.25, "y": 1.5},
+
+ {"matrix": [2, 0], "x": 0, "y": 2.5, "w": 1.5},
+ {"matrix": [2, 1], "x": 1.5, "y": 2.5},
+ {"matrix": [2, 2], "x": 2.5, "y": 2.5},
+ {"matrix": [2, 3], "x": 3.5, "y": 2.5},
+ {"matrix": [2, 4], "x": 4.5, "y": 2.5},
+ {"matrix": [2, 5], "x": 5.5, "y": 2.5},
+ {"matrix": [2, 6], "x": 6.5, "y": 2.5},
+ {"matrix": [2, 7], "x": 7.5, "y": 2.5},
+ {"matrix": [2, 8], "x": 8.5, "y": 2.5},
+ {"matrix": [2, 9], "x": 9.5, "y": 2.5},
+ {"matrix": [2, 10], "x": 10.5, "y": 2.5},
+ {"matrix": [2, 11], "x": 11.5, "y": 2.5},
+ {"matrix": [2, 12], "x": 12.5, "y": 2.5},
+ {"matrix": [2, 13], "x": 13.5, "y": 2.5, "w": 1.5},
+
+ {"matrix": [2, 14], "x": 15.25, "y": 2.5},
+ {"matrix": [2, 15], "x": 16.25, "y": 2.5},
+ {"matrix": [2, 16], "x": 17.25, "y": 2.5},
+
+ {"matrix": [3, 0], "x": 0, "y": 3.5, "w": 1.75},
+ {"matrix": [3, 1], "x": 1.75, "y": 3.5},
+ {"matrix": [3, 2], "x": 2.75, "y": 3.5},
+ {"matrix": [3, 3], "x": 3.75, "y": 3.5},
+ {"matrix": [3, 4], "x": 4.75, "y": 3.5},
+ {"matrix": [3, 5], "x": 5.75, "y": 3.5},
+ {"matrix": [3, 6], "x": 6.75, "y": 3.5},
+ {"matrix": [3, 7], "x": 7.75, "y": 3.5},
+ {"matrix": [3, 8], "x": 8.75, "y": 3.5},
+ {"matrix": [3, 9], "x": 9.75, "y": 3.5},
+ {"matrix": [3, 10], "x": 10.75, "y": 3.5},
+ {"matrix": [3, 11], "x": 11.75, "y": 3.5},
+ {"matrix": [3, 13], "x": 12.75, "y": 3.5, "w": 2.25},
+
+ {"matrix": [4, 0], "x": 0, "y": 4.5, "w": 2.25},
+ {"matrix": [4, 1], "x": 2.25, "y": 4.5},
+ {"matrix": [4, 2], "x": 3.25, "y": 4.5},
+ {"matrix": [4, 3], "x": 4.25, "y": 4.5},
+ {"matrix": [4, 4], "x": 5.25, "y": 4.5},
+ {"matrix": [4, 5], "x": 6.25, "y": 4.5},
+ {"matrix": [4, 6], "x": 7.25, "y": 4.5},
+ {"matrix": [4, 7], "x": 8.25, "y": 4.5},
+ {"matrix": [4, 8], "x": 9.25, "y": 4.5},
+ {"matrix": [4, 9], "x": 10.25, "y": 4.5},
+ {"matrix": [4, 10], "x": 11.25, "y": 4.5},
+ {"matrix": [4, 12], "x": 12.25, "y": 4.5, "w": 2.75},
+
+ {"matrix": [4, 15], "x": 16.25, "y": 4.5},
+
+ {"matrix": [5, 0], "x": 0, "y": 5.5, "w": 1.25},
+ {"matrix": [5, 1], "x": 1.25, "y": 5.5, "w": 1.25},
+ {"matrix": [5, 2], "x": 2.5, "y": 5.5, "w": 1.25},
+ {"matrix": [5, 5], "x": 3.75, "y": 5.5, "w": 6.25},
+ {"matrix": [5, 9], "x": 10, "y": 5.5, "w": 1.25},
+ {"matrix": [5, 10], "x": 11.25, "y": 5.5, "w": 1.25},
+ {"matrix": [5, 11], "x": 12.5, "y": 5.5, "w": 1.25},
+ {"matrix": [5, 12], "x": 13.75, "y": 5.5, "w": 1.25},
+
+ {"matrix": [5, 13], "x": 15.25, "y": 5.5},
+ {"matrix": [5, 15], "x": 16.25, "y": 5.5},
+ {"matrix": [5, 16], "x": 17.25, "y": 5.5}
]
}
}
diff --git a/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h b/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
index be172a8cf6..eaff1148d0 100644
--- a/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
+++ b/keyboards/kprepublic/bm80hsrgb/keymaps/peepeetee/config.h
@@ -28,7 +28,6 @@
// #define RETRO_TAPPING // Tap anyway, even after TAPPING_TERM, if there was no other key interruption between press and release
// #define TAPPING_TOGGLE 2 // How many taps before triggering the toggle
// #define PERMISSIVE_HOLD // Makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the TAPPING_TERM. See Permissive Hold for details
-// #define IGNORE_MOD_TAP_INTERRUPT // Makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the TAPPING_TERM for both keys. See Mod tap interrupt for details
// #define QUICK_TAP_TERM 0 // Makes it possible to use a dual role key as modifier shortly after having been tapped. See Hold after tap. Breaks any Tap Toggle functionality (TT or the One Shot Tap Toggle)
// #define LEADER_TIMEOUT 300 // How long before the leader key times out. If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the LEADER_PER_KEY_TIMING option, which resets the timeout after each key is tapped.
// #define LEADER_PER_KEY_TIMING // Sets the timer for leader key chords to run on each key press rather than overall