summaryrefslogtreecommitdiff
path: root/keyboards/massdrop/thekey_v2
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/massdrop/thekey_v2')
-rw-r--r--keyboards/massdrop/thekey_v2/config.h10
-rw-r--r--keyboards/massdrop/thekey_v2/info.json14
-rw-r--r--keyboards/massdrop/thekey_v2/thekey_v2.c17
-rw-r--r--keyboards/massdrop/thekey_v2/thekey_v2.h27
4 files changed, 11 insertions, 57 deletions
diff --git a/keyboards/massdrop/thekey_v2/config.h b/keyboards/massdrop/thekey_v2/config.h
index 3f7dc30ac1..82744c137c 100644
--- a/keyboards/massdrop/thekey_v2/config.h
+++ b/keyboards/massdrop/thekey_v2/config.h
@@ -16,16 +16,6 @@
#pragma once
-
-/*
- * Keyboard Matrix Assignments
- */
-#define MATRIX_ROW_PINS { D4 }
-#define MATRIX_COL_PINS { D2, D1, D0 }
-
-#define DIODE_DIRECTION ROW2COL
-
-#define RGB_DI_PIN B1
#define RGBLED_NUM 5
#define RGBLIGHT_LED_MAP {4, 0, 1, 2, 3}
#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/massdrop/thekey_v2/info.json b/keyboards/massdrop/thekey_v2/info.json
index 19ae416b6e..b54cec2268 100644
--- a/keyboards/massdrop/thekey_v2/info.json
+++ b/keyboards/massdrop/thekey_v2/info.json
@@ -8,14 +8,22 @@
"pid": "0x0000",
"device_version": "0.0.2"
},
+ "ws2812": {
+ "pin": "B1"
+ },
+ "matrix_pins": {
+ "cols": ["D2", "D1", "D0"],
+ "rows": ["D4"]
+ },
+ "diode_direction": "ROW2COL",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
"LAYOUT": {
"layout": [
- { "label": "K00 (D4,D2)", "x": 0, "y": 0 },
- { "label": "K01 (D4,D1)", "x": 1, "y": 0 },
- { "label": "K02 (D4,D0)", "x": 2, "y": 0 }
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0}
]
}
}
diff --git a/keyboards/massdrop/thekey_v2/thekey_v2.c b/keyboards/massdrop/thekey_v2/thekey_v2.c
deleted file mode 100644
index b1a824d9d4..0000000000
--- a/keyboards/massdrop/thekey_v2/thekey_v2.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright 2022 Jason Wihardja
- *
- * 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 "thekey_v2.h"
diff --git a/keyboards/massdrop/thekey_v2/thekey_v2.h b/keyboards/massdrop/thekey_v2/thekey_v2.h
deleted file mode 100644
index c3b8e1a8ea..0000000000
--- a/keyboards/massdrop/thekey_v2/thekey_v2.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright 2022 Jason Wihardja
- *
- * 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
-
-#include "quantum.h"
-
-#define XXX KC_NO
-
-#define LAYOUT( \
- K00, K01, K02 \
-) { \
- { K00, K01, K02 }, \
-}