aboutsummaryrefslogtreecommitdiff
path: root/keyboards/wekey
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/wekey')
-rw-r--r--keyboards/wekey/we27/keyboard.json29
-rw-r--r--keyboards/wekey/we27/we27.c46
2 files changed, 29 insertions, 46 deletions
diff --git a/keyboards/wekey/we27/keyboard.json b/keyboards/wekey/we27/keyboard.json
index 91731cdc39..50c6de9e10 100644
--- a/keyboards/wekey/we27/keyboard.json
+++ b/keyboards/wekey/we27/keyboard.json
@@ -29,6 +29,35 @@
"hue": 108
},
"driver": "ws2812",
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 1, "flags": 1},
+ {"matrix": [0, 1], "x": 56, "y": 1, "flags": 1},
+ {"matrix": [0, 2], "x": 112, "y": 1, "flags": 1},
+ {"matrix": [0, 3], "x": 168, "y": 1, "flags": 1},
+ {"matrix": [0, 4], "x": 224, "y": 1, "flags": 1},
+ {"matrix": [1, 4], "x": 0, "y": 16, "flags": 1},
+ {"matrix": [1, 3], "x": 56, "y": 16, "flags": 1},
+ {"matrix": [1, 2], "x": 112, "y": 16, "flags": 4},
+ {"matrix": [1, 1], "x": 168, "y": 16, "flags": 4},
+ {"matrix": [1, 0], "x": 224, "y": 16, "flags": 4},
+ {"matrix": [2, 0], "x": 0, "y": 28, "flags": 1},
+ {"matrix": [2, 1], "x": 56, "y": 28, "flags": 4},
+ {"matrix": [2, 2], "x": 112, "y": 28, "flags": 4},
+ {"matrix": [2, 3], "x": 168, "y": 28, "flags": 4},
+ {"matrix": [2, 4], "x": 224, "y": 28, "flags": 4},
+ {"matrix": [3, 3], "x": 0, "y": 40, "flags": 1},
+ {"matrix": [3, 2], "x": 56, "y": 40, "flags": 4},
+ {"matrix": [3, 1], "x": 112, "y": 40, "flags": 4},
+ {"matrix": [3, 0], "x": 168, "y": 40, "flags": 4},
+ {"matrix": [4, 0], "x": 0, "y": 52, "flags": 1},
+ {"matrix": [4, 1], "x": 56, "y": 52, "flags": 4},
+ {"matrix": [4, 2], "x": 112, "y": 52, "flags": 4},
+ {"matrix": [4, 3], "x": 168, "y": 52, "flags": 4},
+ {"matrix": [4, 4], "x": 224, "y": 52, "flags": 4},
+ {"matrix": [5, 3], "x": 0, "y": 64, "flags": 1},
+ {"matrix": [5, 1], "x": 56, "y": 64, "flags": 4},
+ {"matrix": [5, 0], "x": 168, "y": 64, "flags": 4}
+ ],
"react_on_keyup": true
},
"matrix_pins": {
diff --git a/keyboards/wekey/we27/we27.c b/keyboards/wekey/we27/we27.c
deleted file mode 100644
index 03ec6f5512..0000000000
--- a/keyboards/wekey/we27/we27.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* Copyright 2021 @wekey
- *
- * 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 "quantum.h"
-
-#ifdef RGB_MATRIX_ENABLE
-
-#define __ NO_LED
-
-led_config_t g_led_config = { {
- { 0, 1, 2, 3, 4 },
- { 9, 8, 7, 6, 5 },
- { 10, 11, 12, 13, 14 },
- { 18, 17, 16, 15, __ },
- { 19, 20, 21, 22, 23 },
- { 26, 25, __, 24, __ }
-}, {
- {0,1},{56,1},{112,1},{168,1},{224,1},
- {0,16},{56,16},{112,16},{168,16},{224,16},
- {0,28},{56,28},{112,28},{168,28},{224,28},
- {0,40},{56,40},{112,40},{168,40},
- {0,52},{56,52},{112,52},{168,52},{224,52},
- {0,64},{56,64},{168,64}
-}, {
- 1, 1, 1, 1, 1,
- 1, 1, 4, 4, 4,
- 1, 4, 4, 4, 4,
- 1, 4, 4, 4,
- 1, 4, 4, 4, 4,
- 1, 4, 4
-} };
-
-#endif