summaryrefslogtreecommitdiff
path: root/keyboards/primekb/prime_m
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/primekb/prime_m')
-rw-r--r--keyboards/primekb/prime_m/config.h8
-rw-r--r--keyboards/primekb/prime_m/info.json5
-rw-r--r--keyboards/primekb/prime_m/prime_m.c17
3 files changed, 5 insertions, 25 deletions
diff --git a/keyboards/primekb/prime_m/config.h b/keyboards/primekb/prime_m/config.h
index 46995b1d31..053bc6236a 100644
--- a/keyboards/primekb/prime_m/config.h
+++ b/keyboards/primekb/prime_m/config.h
@@ -18,14 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* Keyboard Matrix Assignments */
-#define MATRIX_ROW_PINS { C5, B5, B2, D5, D3 }
-#define MATRIX_COL_PINS { B3, C7, C6, D2, D1, D0 }
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
/* 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/primekb/prime_m/info.json b/keyboards/primekb/prime_m/info.json
index ace8f6b52a..238633ee3a 100644
--- a/keyboards/primekb/prime_m/info.json
+++ b/keyboards/primekb/prime_m/info.json
@@ -8,6 +8,11 @@
"pid": "0x504D",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["B3", "C7", "C6", "D2", "D1", "D0"],
+ "rows": ["C5", "B5", "B2", "D5", "D3"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7",
"levels": 4
diff --git a/keyboards/primekb/prime_m/prime_m.c b/keyboards/primekb/prime_m/prime_m.c
deleted file mode 100644
index 168fec4edf..0000000000
--- a/keyboards/primekb/prime_m/prime_m.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright 2018 Jumail Mundekkat
- * Copyright 2020 Holten Campbell
- *
- * 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 "prime_m.h"