summaryrefslogtreecommitdiff
path: root/keyboards/slz40
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/slz40')
-rw-r--r--keyboards/slz40/config.h17
-rw-r--r--keyboards/slz40/info.json9
-rw-r--r--keyboards/slz40/slz40.c17
3 files changed, 7 insertions, 36 deletions
diff --git a/keyboards/slz40/config.h b/keyboards/slz40/config.h
index b55916fe15..e66e3202cc 100644
--- a/keyboards/slz40/config.h
+++ b/keyboards/slz40/config.h
@@ -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 { B4, B5, B3, B2, B6 }
-#define MATRIX_COL_PINS { F4, D2, F5, D1, F6, D0, F7, D4, B1, C6, E6, D7 }
-
-/* 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/slz40/info.json b/keyboards/slz40/info.json
index dcbd0c73b2..25d250e848 100644
--- a/keyboards/slz40/info.json
+++ b/keyboards/slz40/info.json
@@ -8,6 +8,11 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["F4", "D2", "F5", "D1", "F6", "D0", "F7", "D4", "B1", "C6", "E6", "D7"],
+ "rows": ["B4", "B5", "B3", "B2", "B6"]
+ },
+ "diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
@@ -67,11 +72,11 @@
{"label": "ctrl", "x": 0, "y": 4, "w": 1.25},
{"label": "qui", "x": 1.25, "y": 4, "w": 1.25},
- {"label": "alt", "x": 2.50, "y": 4, "w": 1.25},
+ {"label": "alt", "x": 2.5, "y": 4, "w": 1.25},
{"label": "del", "x": 3.75, "y": 4, "w": 1.25},
{"label": "enter", "x": 5, "y": 4, "w": 1.75},
{"label": "space", "x": 6.75, "y": 4, "w": 1.75},
- {"label": "'", "x": 8.50, "y": 4, "w": 1.5},
+ {"label": "'", "x": 8.5, "y": 4, "w": 1.5},
{"label": "left", "x": 10, "y": 4},
{"label": "down", "x": 11, "y": 4},
{"label": "right", "x": 12, "y": 4}
diff --git a/keyboards/slz40/slz40.c b/keyboards/slz40/slz40.c
deleted file mode 100644
index 261b0bd892..0000000000
--- a/keyboards/slz40/slz40.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright 2020 SithLord
- *
- * 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 "slz40.h"