aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/mwstudio/mw75r2
diff options
context:
space:
mode:
authorJack Sangdahl2025-09-09 11:09:14 +0200
committerGitHub2025-09-09 11:09:14 +0200
commit7186a631721da92c02e1d487c7a99605ee2db269 (patch)
treea611cb78178a002624ed8891308a2bd5acaa50c4 /keyboards/mwstudio/mw75r2
parentff1900190c166d28f8d903ea7bf723658780d192 (diff)
Migrate `g_led_config` to DD (M3) (#25620)
Diffstat (limited to 'keyboards/mwstudio/mw75r2')
-rw-r--r--keyboards/mwstudio/mw75r2/keyboard.json25
-rw-r--r--keyboards/mwstudio/mw75r2/mw75r2.c31
2 files changed, 24 insertions, 32 deletions
diff --git a/keyboards/mwstudio/mw75r2/keyboard.json b/keyboards/mwstudio/mw75r2/keyboard.json
index 10c6a226ca..6cb4269400 100644
--- a/keyboards/mwstudio/mw75r2/keyboard.json
+++ b/keyboards/mwstudio/mw75r2/keyboard.json
@@ -39,7 +39,30 @@
"pixel_fractal": true,
"pixel_rain": true
},
- "driver": "ws2812"
+ "driver": "ws2812",
+ "layout": [
+ {"x": 105, "y": 60, "flags": 1},
+ {"x": 70, "y": 60, "flags": 1},
+ {"x": 35, "y": 60, "flags": 1},
+ {"x": 0, "y": 60, "flags": 1},
+ {"x": 0, "y": 40, "flags": 1},
+ {"x": 0, "y": 20, "flags": 1},
+ {"x": 0, "y": 0, "flags": 1},
+ {"x": 42, "y": 0, "flags": 1},
+ {"x": 84, "y": 0, "flags": 1},
+ {"x": 126, "y": 0, "flags": 1},
+ {"x": 168, "y": 0, "flags": 1},
+ {"x": 210, "y": 0, "flags": 1},
+ {"x": 210, "y": 20, "flags": 1},
+ {"x": 210, "y": 40, "flags": 1},
+ {"x": 40, "y": 20, "flags": 1},
+ {"x": 120, "y": 20, "flags": 1},
+ {"x": 40, "y": 40, "flags": 1},
+ {"x": 120, "y": 40, "flags": 1},
+ {"x": 210, "y": 60, "flags": 1},
+ {"x": 175, "y": 60, "flags": 1},
+ {"x": 140, "y": 60, "flags": 1}
+ ]
},
"features": {
"bootmagic": true,
diff --git a/keyboards/mwstudio/mw75r2/mw75r2.c b/keyboards/mwstudio/mw75r2/mw75r2.c
deleted file mode 100644
index ca058e9d8d..0000000000
--- a/keyboards/mwstudio/mw75r2/mw75r2.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Copyright 2021 TW59420 <https://github.com/TW59420>
- *
- * 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
-led_config_t g_led_config = { {
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }
-}, {
- { 105, 60 }, { 70, 60 }, { 35, 60 }, { 0, 60 }, { 0, 40 }, { 0, 20 }, { 0, 0 }, { 42, 0 }, { 84, 0 }, { 126, 0 }, { 168, 0 }, { 210, 0 }, { 210, 20 }, { 210, 40 }, { 40, 20 }, { 120, 20 }, { 40, 40 }, { 120, 40 }, { 210, 60 }, { 175, 60 },{ 140, 60 }
-}, {
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
-} };
-#endif