Move matrix config to info.json, part 3 (#19991)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define MATRIX_ROW_PINS { B12, A5, A3, A2, A1, A0 }
|
||||
#define MATRIX_COL_PINS { B13, B14, B15, A4 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* RGB options */
|
||||
|
||||
#define RGB_DI_PIN A7
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x4E4E",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B13", "B14", "B15", "A4"],
|
||||
"rows": ["B12", "A5", "A3", "A2", "A1", "A0"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"processor": "STM32F072",
|
||||
"bootloader": "stm32-dfu",
|
||||
"layout_aliases": {
|
||||
|
7
keyboards/novelkeys/nk65/base/info.json
Normal file
7
keyboards/novelkeys/nk65/base/info.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"matrix_pins": {
|
||||
"cols": ["A13", "A10", "A9", "A14", "A15", "B8", "B9", "C13", "C14", "C15", "A0", "A1", "A2", "A3", "A5"],
|
||||
"rows": ["B3", "B4", "B5", "A8", "A4"]
|
||||
},
|
||||
"diode_direction": "COL2ROW"
|
||||
}
|
0
keyboards/novelkeys/nk65/base/rules.mk
Normal file
0
keyboards/novelkeys/nk65/base/rules.mk
Normal file
@@ -17,14 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define MATRIX_ROW_PINS { B3, B4, B5, A8, A4 }
|
||||
#define MATRIX_COL_PINS { A13, A10, A9, A14, A15, B8, B9, C13, C14, C15, A0, A1, A2, A3, A5 }
|
||||
// To enable debugger set A13 A14 -> A5 A7
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Backlight options */
|
||||
|
||||
#define RGB_BACKLIGHT_ENABLED 1
|
||||
|
@@ -24,3 +24,5 @@ SRC = keyboards/wilba_tech/wt_main.c \
|
||||
drivers/led/issi/is31fl3733.c \
|
||||
quantum/color.c \
|
||||
i2c_master.c
|
||||
|
||||
DEFAULT_FOLDER = novelkeys/nk65/base
|
||||
|
@@ -1,22 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 Yiancar
|
||||
|
||||
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
|
||||
|
||||
#undef MATRIX_COL_PINS
|
||||
#define MATRIX_COL_PINS { A13, A10, A9, A14, A15, B8, B9, B1, B0, A7, A0, A1, A2, A3, A5 }
|
||||
// To enable debugger set A13 A14 -> A5 A7
|
7
keyboards/novelkeys/nk65/v1_4/info.json
Normal file
7
keyboards/novelkeys/nk65/v1_4/info.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"matrix_pins": {
|
||||
"cols": ["A13", "A10", "A9", "A14", "A15", "B8", "B9", "B1", "B0", "A7", "A0", "A1", "A2", "A3", "A5"],
|
||||
"rows": ["B3", "B4", "B5", "A8", "A4"]
|
||||
},
|
||||
"diode_direction": "COL2ROW"
|
||||
}
|
@@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define MATRIX_ROW_PINS { A0, A1, A2, B11, B6 }
|
||||
#define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B10, B12, B13, B14, B15, A8, A9 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* RGB options */
|
||||
|
||||
#define RGB_DI_PIN B4
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x4E4F",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A3", "A4", "A5", "A6", "A7", "B0", "B1", "B2", "B10", "B12", "B13", "B14", "B15", "A8", "A9"],
|
||||
"rows": ["A0", "A1", "A2", "B11", "B6"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"indicators": {
|
||||
"caps_lock": "A14",
|
||||
"on_state": 0
|
||||
|
@@ -17,14 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define MATRIX_ROW_PINS { A7, B3, B4, B5, A8, A4 }
|
||||
#define MATRIX_COL_PINS { A13, A10, A9, A14, A15, B8, B9, B2, B0, A6, A0, A1, A2, A3, A5, B1, B10 }
|
||||
// To enable debugger set A13 A14 -> A5 A7
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Backlight options */
|
||||
|
||||
#define RGB_BACKLIGHT_ENABLED 1
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x4E4C",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A13", "A10", "A9", "A14", "A15", "B8", "B9", "B2", "B0", "A6", "A0", "A1", "A2", "A3", "A5", "B1", "B10"],
|
||||
"rows": ["A7", "B3", "B4", "B5", "A8", "A4"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"processor": "STM32F303",
|
||||
"bootloader": "stm32-dfu",
|
||||
"board": "QMK_PROTON_C",
|
||||
|
@@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define MATRIX_ROW_PINS { B11, B10, B2, B1, A9, A5 }
|
||||
#define MATRIX_COL_PINS { B12, B13, B14, B15, A8, A10, A14, A15, B3, B4, B5, B6, B7, B8, B9, A0, A1 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* RGB options */
|
||||
|
||||
#define RGB_DI_PIN B0
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x4E50",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["B12", "B13", "B14", "B15", "A8", "A10", "A14", "A15", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "A0", "A1"],
|
||||
"rows": ["B11", "B10", "B2", "B1", "A9", "A5"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"indicators": {
|
||||
"caps_lock": "A2",
|
||||
"on_state": 0
|
||||
|
@@ -17,23 +17,6 @@ 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 { C2, C4, C5, C6, C7 }
|
||||
#define MATRIX_COL_PINS { D7, D6, D5, D4 }
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define RGB_DI_PIN D3
|
||||
#ifdef RGB_DI_PIN
|
||||
#define RGBLED_NUM 4
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x6070",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["D7", "D6", "D5", "D4"],
|
||||
"rows": ["C2", "C4", "C5", "C6", "C7"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"backlight": {
|
||||
"pin": "B7",
|
||||
"levels": 10
|
||||
|
Reference in New Issue
Block a user