summaryrefslogtreecommitdiff
path: root/keyboards/handwired/k_numpad17
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/k_numpad17')
-rw-r--r--keyboards/handwired/k_numpad17/config.h8
-rw-r--r--keyboards/handwired/k_numpad17/info.json39
-rw-r--r--keyboards/handwired/k_numpad17/k_numpad17.c1
-rw-r--r--keyboards/handwired/k_numpad17/k_numpad17.h35
4 files changed, 22 insertions, 61 deletions
diff --git a/keyboards/handwired/k_numpad17/config.h b/keyboards/handwired/k_numpad17/config.h
index 0fd1452887..9bcc1ca12e 100644
--- a/keyboards/handwired/k_numpad17/config.h
+++ b/keyboards/handwired/k_numpad17/config.h
@@ -20,14 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define TAPPING_TERM 400
-// ROWS: Top to bottom, COLS: Left to right
-
-#define MATRIX_ROW_PINS { D1, D4, C6, D7, E6 }
-#define MATRIX_COL_PINS { B2, B1, F6 , F4 }
-
-/* COL2ROW or 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/handwired/k_numpad17/info.json b/keyboards/handwired/k_numpad17/info.json
index 1ea003178b..e0cd79a9c0 100644
--- a/keyboards/handwired/k_numpad17/info.json
+++ b/keyboards/handwired/k_numpad17/info.json
@@ -8,33 +8,38 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["B2", "B1", "F6", "F4"],
+ "rows": ["D1", "D4", "C6", "D7", "E6"]
+ },
+ "diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "caterina",
"community_layouts": ["numpad_5x4"],
"layouts": {
"LAYOUT_numpad_5x4": {
"layout": [
- {"x": 0, "y": 0},
- {"x": 1, "y": 0},
- {"x": 2, "y": 0},
- {"x": 3, "y": 0},
+ {"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},
- {"x": 0, "y": 1},
- {"x": 1, "y": 1},
- {"x": 2, "y": 1},
+ {"matrix": [1, 0], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 2, "y": 1},
- {"x": 0, "y": 2},
- {"x": 1, "y": 2},
- {"x": 2, "y": 2},
- {"x": 3, "y": 1, "h": 2},
+ {"matrix": [2, 0], "x": 0, "y": 2},
+ {"matrix": [2, 1], "x": 1, "y": 2},
+ {"matrix": [2, 2], "x": 2, "y": 2},
+ {"matrix": [1, 3], "x": 3, "y": 1, "h": 2},
- {"x": 0, "y": 3},
- {"x": 1, "y": 3},
- {"x": 2, "y": 3},
+ {"matrix": [3, 0], "x": 0, "y": 3},
+ {"matrix": [3, 1], "x": 1, "y": 3},
+ {"matrix": [3, 2], "x": 2, "y": 3},
- {"x": 0, "y": 4, "w": 2},
- {"x": 2, "y": 4},
- {"x": 3, "y": 3, "h": 2}
+ {"matrix": [4, 0], "x": 0, "y": 4, "w": 2},
+ {"matrix": [4, 2], "x": 2, "y": 4},
+ {"matrix": [3, 3], "x": 3, "y": 3, "h": 2}
]
}
}
diff --git a/keyboards/handwired/k_numpad17/k_numpad17.c b/keyboards/handwired/k_numpad17/k_numpad17.c
deleted file mode 100644
index 290a86aac5..0000000000
--- a/keyboards/handwired/k_numpad17/k_numpad17.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "k_numpad17.h" \ No newline at end of file
diff --git a/keyboards/handwired/k_numpad17/k_numpad17.h b/keyboards/handwired/k_numpad17/k_numpad17.h
deleted file mode 100644
index 1fc99794df..0000000000
--- a/keyboards/handwired/k_numpad17/k_numpad17.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#pragma once
-#include "quantum.h"
-
-// The first section contains all of the arguments
-// The second converts the arguments into a two-dimensional array
-#define LAYOUT_numpad_5x4( \
- k00, k01, k02, k03, \
- k10, k11, k12, \
- k20, k21, k22, k13, \
- k30, k31, k32, \
- k40, k41, k33 \
-) \
-{ \
- {k00, k01, k02, k03}, \
- {k10, k11, k12, k13}, \
- {k20, k21, k22, KC_NO}, \
- {k30, k31, k32, k33}, \
- {k40, KC_NO, k41, KC_NO} \
-}
-
-/* matrix layout
- * ,-------------------.
- * | 00 | 01 | 02 | 03 |
- * |----|----|----|----|
- * | 10 | 11 | 12 | |
- * |----|----|----| 13 |
- * | 20 | 21 | 22 | |
- * |----|----|----|----|
- * | 30 | 31 | 32 | |
- * |----|----|----| 33 |
- * | 40 | 41 | |
- * `-------------------'
- */
-
-