summaryrefslogtreecommitdiffstats
path: root/keyboards/2key2crawl
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/2key2crawl')
-rw-r--r--keyboards/2key2crawl/2key2crawl.c1
-rw-r--r--keyboards/2key2crawl/2key2crawl.h12
-rw-r--r--keyboards/2key2crawl/config.h9
-rw-r--r--keyboards/2key2crawl/info.json31
4 files changed, 20 insertions, 33 deletions
diff --git a/keyboards/2key2crawl/2key2crawl.c b/keyboards/2key2crawl/2key2crawl.c
deleted file mode 100644
index fe2161bef4..0000000000
--- a/keyboards/2key2crawl/2key2crawl.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "2key2crawl.h"
diff --git a/keyboards/2key2crawl/2key2crawl.h b/keyboards/2key2crawl/2key2crawl.h
deleted file mode 100644
index 6e8ee64208..0000000000
--- a/keyboards/2key2crawl/2key2crawl.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-#define LAYOUT( \
- K00, K01, K02, K03, K15, \
- K10, K11, K12, K13, K14, K16 \
-) { \
- { K00, K01, K02, K03, KC_NO, KC_NO, KC_NO }, \
- { K10, K11, K12, K13, K14, K15, K16 }, \
-}
-
diff --git a/keyboards/2key2crawl/config.h b/keyboards/2key2crawl/config.h
index 67a1b48157..a4088e4925 100644
--- a/keyboards/2key2crawl/config.h
+++ b/keyboards/2key2crawl/config.h
@@ -1,13 +1,5 @@
#pragma once
-
-/* key matrix pins */
-#define MATRIX_ROW_PINS { C4, C5 }
-#define MATRIX_COL_PINS { B3, B4, B5, B6, B7, C7, B2 }
-
-/* 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 C6
# define RGBLIGHT_EFFECT_BREATHING
# define RGBLIGHT_EFFECT_RAINBOW_MOOD
# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
diff --git a/keyboards/2key2crawl/info.json b/keyboards/2key2crawl/info.json
index e4ab7f79a9..1752531ba1 100644
--- a/keyboards/2key2crawl/info.json
+++ b/keyboards/2key2crawl/info.json
@@ -8,28 +8,37 @@
"pid": "0x6090",
"device_version": "0.0.2"
},
+ "matrix_pins": {
+ "cols": ["B3", "B4", "B5", "B6", "B7", "C7", "B2"],
+ "rows": ["C4", "C5"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "D0", "pin_b": "D1", "resolution": 1}
]
},
+ "ws2812": {
+ "pin": "C6"
+ },
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"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": [1, 5], "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": [1, 6], "x": 5.5, "y": 0.5}
]
}
}