summaryrefslogtreecommitdiff
path: root/keyboards/sck/gtm
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/sck/gtm')
-rw-r--r--keyboards/sck/gtm/config.h9
-rw-r--r--keyboards/sck/gtm/gtm.c1
-rw-r--r--keyboards/sck/gtm/gtm.h12
-rw-r--r--keyboards/sck/gtm/info.json31
4 files changed, 20 insertions, 33 deletions
diff --git a/keyboards/sck/gtm/config.h b/keyboards/sck/gtm/config.h
index f4961f2242..c95d84b30d 100644
--- a/keyboards/sck/gtm/config.h
+++ b/keyboards/sck/gtm/config.h
@@ -1,13 +1,5 @@
#pragma once
-
-/* key matrix pins */
-#define MATRIX_ROW_PINS { C4, C5, D1 }
-#define MATRIX_COL_PINS { B4, B5, B6, B7, C7, D0 }
-
-/* 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
@@ -16,7 +8,6 @@
#ifdef RGBLIGHT_ENABLE
-#define RGB_DI_PIN B0
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/sck/gtm/gtm.c b/keyboards/sck/gtm/gtm.c
deleted file mode 100644
index 6adb9b39b6..0000000000
--- a/keyboards/sck/gtm/gtm.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "gtm.h"
diff --git a/keyboards/sck/gtm/gtm.h b/keyboards/sck/gtm/gtm.h
deleted file mode 100644
index 47625f417f..0000000000
--- a/keyboards/sck/gtm/gtm.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-#define LAYOUT( \
- K00, K01, K02, K03, K04, \
- K10, K11, K12, K13, K14, K25 \
-) { \
- { K00, K01, K02, K03, K04, KC_NO }, \
- { K10, K11, K12, K13, K14, KC_NO }, \
- { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K25 }, \
-}
diff --git a/keyboards/sck/gtm/info.json b/keyboards/sck/gtm/info.json
index 3f254f2c77..422fb0c0f1 100644
--- a/keyboards/sck/gtm/info.json
+++ b/keyboards/sck/gtm/info.json
@@ -8,6 +8,14 @@
"pid": "0x6090",
"device_version": "0.0.2"
},
+ "ws2812": {
+ "pin": "B0"
+ },
+ "matrix_pins": {
+ "cols": ["B4", "B5", "B6", "B7", "C7", "D0"],
+ "rows": ["C4", "C5", "D1"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "D2", "pin_b": "D3", "resolution": 1}
@@ -18,18 +26,19 @@
"layouts": {
"LAYOUT": {
"layout": [
- {"label":"K00", "x":0, "y":0},
- {"label":"K01", "x":1, "y":0},
- {"label":"K02", "x":2, "y":0},
- {"label":"K03", "x":3, "y":0},
- {"label":"K15", "x":4, "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},
+ {"matrix": [0, 4], "x": 4, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 2, "y": 1},
+ {"matrix": [1, 3], "x": 3, "y": 1},
+ {"matrix": [1, 4], "x": 4, "y": 1},
- {"label":"K10", "x":0, "y":1},
- {"label":"K11", "x":1, "y":1},
- {"label":"K12", "x":2, "y":1},
- {"label":"K13", "x":3, "y":1},
- {"label":"K14", "x":4, "y":1},
- {"label":"K16", "x":5.5, "y":0.5}
+ {"matrix": [2, 5], "x": 5.5, "y": 0.5}
]
}
}