summaryrefslogtreecommitdiff
path: root/keyboards/wuque/promise87
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/wuque/promise87')
-rw-r--r--keyboards/wuque/promise87/ansi/ansi.c17
-rw-r--r--keyboards/wuque/promise87/ansi/config.h8
-rw-r--r--keyboards/wuque/promise87/ansi/info.json43
-rw-r--r--keyboards/wuque/promise87/wkl/config.h8
-rw-r--r--keyboards/wuque/promise87/wkl/info.json11
-rw-r--r--keyboards/wuque/promise87/wkl/wkl.c17
6 files changed, 32 insertions, 72 deletions
diff --git a/keyboards/wuque/promise87/ansi/ansi.c b/keyboards/wuque/promise87/ansi/ansi.c
deleted file mode 100644
index 8e20dfb751..0000000000
--- a/keyboards/wuque/promise87/ansi/ansi.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright 2022 wuque
- *
- * 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 "ansi.h"
diff --git a/keyboards/wuque/promise87/ansi/config.h b/keyboards/wuque/promise87/ansi/config.h
index e609117661..fde25201aa 100644
--- a/keyboards/wuque/promise87/ansi/config.h
+++ b/keyboards/wuque/promise87/ansi/config.h
@@ -16,14 +16,7 @@
#pragma once
-
-#define MATRIX_ROW_PINS { B3, B7, B2, F0, D3, D0 }
-#define MATRIX_COL_PINS { D6, D7, D1, D5, F7, D4, F5, F4, F1, C7, C6, B6, B5, B4, E6, B1, B0 }
-
-#define DIODE_DIRECTION COL2ROW
-
#define RGB_DI_PIN D2
-#ifdef RGB_DI_PIN
#define RGBLED_NUM 1
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
@@ -34,4 +27,3 @@
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
-#endif
diff --git a/keyboards/wuque/promise87/ansi/info.json b/keyboards/wuque/promise87/ansi/info.json
index cd9b8b4d63..d6cfb88bb2 100644
--- a/keyboards/wuque/promise87/ansi/info.json
+++ b/keyboards/wuque/promise87/ansi/info.json
@@ -8,6 +8,11 @@
"pid": "0x0005",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["D6", "D7", "D1", "D5", "F7", "D4", "F5", "F4", "F1", "C7", "C6", "B6", "B5", "B4", "E6", "B1", "B0"],
+ "rows": ["B3", "B7", "B2", "F0", "D3", "D0"]
+ },
+ "diode_direction": "COL2ROW",
"indicators": {
"caps_lock": "F6",
"on_state": 0
@@ -115,13 +120,13 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 3 },
- { "label": "Space", "x": 7, "y": 5.25, "w": 1 },
+ { "label": "Space", "x": 7, "y": 5.25 },
{ "label": "Space", "x": 8, "y": 5.25, "w": 3 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -213,11 +218,11 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 7 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -291,7 +296,7 @@
{ "label": "L", "x": 9.75, "y": 3.25 },
{ "label": ";", "x": 10.75, "y": 3.25 },
{ "label": "'", "x": 11.75, "y": 3.25 },
- { "label": "\\", "x": 12.75, "y": 3.25, "w": 1 },
+ { "label": "\\", "x": 12.75, "y": 3.25 },
{ "label": "ISO", "x": 13.75, "y": 2.25, "w": 1.25, "h": 2 },
{ "label": "Shift", "x": 0, "y": 4.25, "w": 1.25 },
@@ -310,11 +315,11 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 7 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -406,13 +411,13 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 3 },
- { "label": "Space", "x": 7, "y": 5.25, "w": 1 },
+ { "label": "Space", "x": 7, "y": 5.25 },
{ "label": "Space", "x": 8, "y": 5.25, "w": 3 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -505,11 +510,11 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 7 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -602,11 +607,11 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 7 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -699,11 +704,11 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 7 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
@@ -797,11 +802,11 @@
{ "label": "\u2191", "x": 16.25, "y": 4.25 },
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
- { "label": "Win", "x": 1.5, "y": 5.25, "w": 1 },
+ { "label": "Win", "x": 1.5, "y": 5.25 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 7 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
- { "label": "Fn", "x": 12.5, "y": 5.25, "w": 1 },
+ { "label": "Fn", "x": 12.5, "y": 5.25 },
{ "label": "Ctrl", "x": 13.5, "y": 5.25, "w": 1.5 },
{ "label": "\u2190", "x": 15.25, "y": 5.25 },
{ "label": "\u2193", "x": 16.25, "y": 5.25 },
diff --git a/keyboards/wuque/promise87/wkl/config.h b/keyboards/wuque/promise87/wkl/config.h
index e609117661..fde25201aa 100644
--- a/keyboards/wuque/promise87/wkl/config.h
+++ b/keyboards/wuque/promise87/wkl/config.h
@@ -16,14 +16,7 @@
#pragma once
-
-#define MATRIX_ROW_PINS { B3, B7, B2, F0, D3, D0 }
-#define MATRIX_COL_PINS { D6, D7, D1, D5, F7, D4, F5, F4, F1, C7, C6, B6, B5, B4, E6, B1, B0 }
-
-#define DIODE_DIRECTION COL2ROW
-
#define RGB_DI_PIN D2
-#ifdef RGB_DI_PIN
#define RGBLED_NUM 1
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
@@ -34,4 +27,3 @@
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
-#endif
diff --git a/keyboards/wuque/promise87/wkl/info.json b/keyboards/wuque/promise87/wkl/info.json
index 0a0e3b0bc5..1b8876686b 100644
--- a/keyboards/wuque/promise87/wkl/info.json
+++ b/keyboards/wuque/promise87/wkl/info.json
@@ -8,6 +8,11 @@
"pid": "0x0006",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["D6", "D7", "D1", "D5", "F7", "D4", "F5", "F4", "F1", "C7", "C6", "B6", "B5", "B4", "E6", "B1", "B0"],
+ "rows": ["B3", "B7", "B2", "F0", "D3", "D0"]
+ },
+ "diode_direction": "COL2ROW",
"indicators": {
"caps_lock": "F6",
"on_state": 0
@@ -114,7 +119,7 @@
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 3 },
- { "label": "Space", "x": 7, "y": 5.25, "w": 1 },
+ { "label": "Space", "x": 7, "y": 5.25 },
{ "label": "Space", "x": 8, "y": 5.25, "w": 3 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
{ "label": "Menu", "x": 13.5, "y": 5.25, "w": 1.5 },
@@ -284,7 +289,7 @@
{ "label": "L", "x": 9.75, "y": 3.25 },
{ "label": ";", "x": 10.75, "y": 3.25 },
{ "label": "'", "x": 11.75, "y": 3.25 },
- { "label": "\\", "x": 12.75, "y": 3.25, "w": 1 },
+ { "label": "\\", "x": 12.75, "y": 3.25 },
{ "label": "ISO", "x": 13.75, "y": 2.25, "w": 1.25, "h": 2 },
{ "label": "Shift", "x": 0, "y": 4.25, "w": 1.25 },
@@ -399,7 +404,7 @@
{ "label": "Ctrl", "x": 0, "y": 5.25, "w": 1.5 },
{ "label": "Alt", "x": 2.5, "y": 5.25, "w": 1.5 },
{ "label": "Space", "x": 4, "y": 5.25, "w": 3 },
- { "label": "Space", "x": 7, "y": 5.25, "w": 1 },
+ { "label": "Space", "x": 7, "y": 5.25 },
{ "label": "Space", "x": 8, "y": 5.25, "w": 3 },
{ "label": "Alt", "x": 11, "y": 5.25, "w": 1.5 },
{ "label": "Menu", "x": 13.5, "y": 5.25, "w": 1.5 },
diff --git a/keyboards/wuque/promise87/wkl/wkl.c b/keyboards/wuque/promise87/wkl/wkl.c
deleted file mode 100644
index 6264f7b1d6..0000000000
--- a/keyboards/wuque/promise87/wkl/wkl.c
+++ /dev/null
@@ -1,17 +0,0 @@
-/* Copyright 2022 wuque
- *
- * 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 "wkl.h"