summaryrefslogtreecommitdiff
path: root/keyboards/novelkeys
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-14 18:39:41 +1100
committerGitHub <noreply@github.com>2023-02-14 00:39:41 -0700
commit2cdf99ae950a82e233482347651b7689c4896827 (patch)
treef26def8c2fd844dad22095d5223fb539b7413ad0 /keyboards/novelkeys
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/novelkeys')
-rw-r--r--keyboards/novelkeys/nk1/config.h10
-rwxr-xr-xkeyboards/novelkeys/nk1/info.json5
2 files changed, 5 insertions, 10 deletions
diff --git a/keyboards/novelkeys/nk1/config.h b/keyboards/novelkeys/nk1/config.h
index 88b9c7abb8..c168aca492 100644
--- a/keyboards/novelkeys/nk1/config.h
+++ b/keyboards/novelkeys/nk1/config.h
@@ -17,16 +17,6 @@
#pragma once
-
-/* key matrix size */
-#define MATRIX_ROWS 1
-#define MATRIX_COLS 1
-
-/* Keyboard Matrix Assignments */
-#define DIRECT_PINS { \
- { D4 } \
-}
-
#define RGB_DI_PIN F0
#ifdef RGB_DI_PIN
#define RGBLED_NUM 9
diff --git a/keyboards/novelkeys/nk1/info.json b/keyboards/novelkeys/nk1/info.json
index 137608c978..c9fa789b70 100755
--- a/keyboards/novelkeys/nk1/info.json
+++ b/keyboards/novelkeys/nk1/info.json
@@ -10,6 +10,11 @@
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["D4"]
+ ]
+ },
"community_layouts": ["ortho_1x1"],
"layouts": {
"LAYOUT_ortho_1x1": {