summaryrefslogtreecommitdiff
path: root/keyboards/kprepublic/bm43a
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kprepublic/bm43a')
-rw-r--r--keyboards/kprepublic/bm43a/bm43a.c16
-rw-r--r--keyboards/kprepublic/bm43a/bm43a.h30
-rw-r--r--keyboards/kprepublic/bm43a/config.h19
-rw-r--r--keyboards/kprepublic/bm43a/info.json97
4 files changed, 54 insertions, 108 deletions
diff --git a/keyboards/kprepublic/bm43a/bm43a.c b/keyboards/kprepublic/bm43a/bm43a.c
deleted file mode 100644
index 47e42864e0..0000000000
--- a/keyboards/kprepublic/bm43a/bm43a.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* Copyright 2019 mechmerlin
- *
- * 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/>.
- */
-#include "bm43a.h"
diff --git a/keyboards/kprepublic/bm43a/bm43a.h b/keyboards/kprepublic/bm43a/bm43a.h
deleted file mode 100644
index 87ca05c4d1..0000000000
--- a/keyboards/kprepublic/bm43a/bm43a.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright 2019 mechmerlin
- *
- * 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"
-
-#define LAYOUT( \
- K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
- K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1B, \
- K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2B, \
- K30, K31, K32, K33, K35, K37, K38, K39, K3B \
-) { \
- { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
- { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, KC_NO, K1B }, \
- { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, KC_NO, K2B }, \
- { K30, K31, K32, K33, KC_NO, K35, KC_NO, K37, K38, K39, KC_NO, K3B }, \
-}
diff --git a/keyboards/kprepublic/bm43a/config.h b/keyboards/kprepublic/bm43a/config.h
index 329615e1d1..d48bc690b1 100644
--- a/keyboards/kprepublic/bm43a/config.h
+++ b/keyboards/kprepublic/bm43a/config.h
@@ -17,31 +17,12 @@ 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 { D1, F4, F1, F0 }
-#define MATRIX_COL_PINS { B0, F5, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4 }
-
-#define DIODE_DIRECTION COL2ROW
-
-#define RGB_DI_PIN E2
-#ifdef RGB_DI_PIN
#define RGBLED_NUM 10
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LIMIT_VAL 180 // Limit to vendor-recommended value
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
-#endif
#ifdef RGB_MATRIX_ENABLE
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // Limit to vendor-recommended value
#endif
diff --git a/keyboards/kprepublic/bm43a/info.json b/keyboards/kprepublic/bm43a/info.json
index 4e23be7857..bee05ba036 100644
--- a/keyboards/kprepublic/bm43a/info.json
+++ b/keyboards/kprepublic/bm43a/info.json
@@ -8,58 +8,69 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["B0", "F5", "F6", "F7", "C7", "C6", "B6", "B5", "B4", "D7", "D6", "D4"],
+ "rows": ["D1", "F4", "F1", "F0"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7",
"levels": 5
},
+ "ws2812": {
+ "pin": "E2"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
"LAYOUT": {
"layout": [
- {"label":"K00 (D1,B0)", "x":0, "y":0},
- {"label":"K01 (D1,F5)", "x":1, "y":0},
- {"label":"K02 (D1,F6)", "x":2, "y":0},
- {"label":"K03 (D1,F7)", "x":3, "y":0},
- {"label":"K04 (D1,C7)", "x":4, "y":0},
- {"label":"K05 (D1,C6)", "x":5, "y":0},
- {"label":"K06 (D1,B6)", "x":6, "y":0},
- {"label":"K07 (D1,B5)", "x":7, "y":0},
- {"label":"K08 (D1,B4)", "x":8, "y":0},
- {"label":"K09 (D1,D7)", "x":9, "y":0},
- {"label":"K0A (D1,D6)", "x":10, "y":0},
- {"label":"K0B (D1,D4)", "x":11, "y":0},
- {"label":"K10 (F4,B0)", "x":0, "y":1, "w":1.25},
- {"label":"K11 (F4,F5)", "x":1.25, "y":1},
- {"label":"K12 (F4,F6)", "x":2.25, "y":1},
- {"label":"K13 (F4,F7)", "x":3.25, "y":1},
- {"label":"K14 (F4,C7)", "x":4.25, "y":1},
- {"label":"K15 (F4,C6)", "x":5.25, "y":1},
- {"label":"K16 (F4,B6)", "x":6.25, "y":1},
- {"label":"K17 (F4,B5)", "x":7.25, "y":1},
- {"label":"K18 (F4,B4)", "x":8.25, "y":1},
- {"label":"K19 (F4,D7)", "x":9.25, "y":1},
- {"label":"K1B (F4,D4)", "x":10.25, "y":1, "w":1.75},
- {"label":"K20 (F1,B0)", "x":0, "y":2, "w":2},
- {"label":"K21 (F1,F5)", "x":2, "y":2},
- {"label":"K22 (F1,F6)", "x":3, "y":2},
- {"label":"K23 (F1,F7)", "x":4, "y":2},
- {"label":"K24 (F1,C7)", "x":5, "y":2},
- {"label":"K25 (F1,C6)", "x":6, "y":2},
- {"label":"K26 (F1,B6)", "x":7, "y":2},
- {"label":"K27 (F1,B5)", "x":8, "y":2},
- {"label":"K28 (F1,B4)", "x":9, "y":2},
- {"label":"K29 (F1,D7)", "x":10, "y":2},
- {"label":"K2B (F1,D4)", "x":11, "y":2},
- {"label":"K30 (F0,B0)", "x":0, "y":3},
- {"label":"K31 (F0,F5)", "x":1, "y":3},
- {"label":"K32 (F0,F6)", "x":2, "y":3},
- {"label":"K33 (F0,F7)", "x":3, "y":3, "w":2.75},
- {"label":"K35 (F0,C6)", "x":5.75, "y":3, "w":2.25},
- {"label":"K37 (F0,B5)", "x":8, "y":3},
- {"label":"K38 (F0,B4)", "x":9, "y":3},
- {"label":"K39 (F0,D7)", "x":10, "y":3},
- {"label":"K3B (F0,D4)", "x":11, "y":3}
+ {"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": [0, 4], "x": 4, "y": 0},
+ {"matrix": [0, 5], "x": 5, "y": 0},
+ {"matrix": [0, 6], "x": 6, "y": 0},
+ {"matrix": [0, 7], "x": 7, "y": 0},
+ {"matrix": [0, 8], "x": 8, "y": 0},
+ {"matrix": [0, 9], "x": 9, "y": 0},
+ {"matrix": [0, 10], "x": 10, "y": 0},
+ {"matrix": [0, 11], "x": 11, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.25},
+ {"matrix": [1, 1], "x": 1.25, "y": 1},
+ {"matrix": [1, 2], "x": 2.25, "y": 1},
+ {"matrix": [1, 3], "x": 3.25, "y": 1},
+ {"matrix": [1, 4], "x": 4.25, "y": 1},
+ {"matrix": [1, 5], "x": 5.25, "y": 1},
+ {"matrix": [1, 6], "x": 6.25, "y": 1},
+ {"matrix": [1, 7], "x": 7.25, "y": 1},
+ {"matrix": [1, 8], "x": 8.25, "y": 1},
+ {"matrix": [1, 9], "x": 9.25, "y": 1},
+ {"matrix": [1, 11], "x": 10.25, "y": 1, "w": 1.75},
+
+ {"matrix": [2, 0], "x": 0, "y": 2, "w": 2},
+ {"matrix": [2, 1], "x": 2, "y": 2},
+ {"matrix": [2, 2], "x": 3, "y": 2},
+ {"matrix": [2, 3], "x": 4, "y": 2},
+ {"matrix": [2, 4], "x": 5, "y": 2},
+ {"matrix": [2, 5], "x": 6, "y": 2},
+ {"matrix": [2, 6], "x": 7, "y": 2},
+ {"matrix": [2, 7], "x": 8, "y": 2},
+ {"matrix": [2, 8], "x": 9, "y": 2},
+ {"matrix": [2, 9], "x": 10, "y": 2},
+ {"matrix": [2, 11], "x": 11, "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, "w": 2.75},
+ {"matrix": [3, 5], "x": 5.75, "y": 3, "w": 2.25},
+ {"matrix": [3, 7], "x": 8, "y": 3},
+ {"matrix": [3, 8], "x": 9, "y": 3},
+ {"matrix": [3, 9], "x": 10, "y": 3},
+ {"matrix": [3, 11], "x": 11, "y": 3}
]
}
}