aboutsummaryrefslogtreecommitdiff
path: root/keyboards/magic_force
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/magic_force')
-rw-r--r--keyboards/magic_force/mf34/keyboard.json36
-rw-r--r--keyboards/magic_force/mf34/mf34.c48
2 files changed, 36 insertions, 48 deletions
diff --git a/keyboards/magic_force/mf34/keyboard.json b/keyboards/magic_force/mf34/keyboard.json
index 9acae04b27..35a652422d 100644
--- a/keyboards/magic_force/mf34/keyboard.json
+++ b/keyboards/magic_force/mf34/keyboard.json
@@ -65,6 +65,42 @@
"solid_multisplash": true
},
"driver": "ws2812",
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
+ {"matrix": [0, 1], "x": 37, "y": 0, "flags": 4},
+ {"matrix": [0, 2], "x": 74, "y": 0, "flags": 4},
+ {"matrix": [0, 3], "x": 112, "y": 0, "flags": 4},
+ {"matrix": [0, 4], "x": 149, "y": 0, "flags": 4},
+ {"matrix": [0, 5], "x": 186, "y": 0, "flags": 4},
+ {"matrix": [0, 6], "x": 224, "y": 0, "flags": 4},
+ {"matrix": [1, 0], "x": 0, "y": 12, "flags": 4},
+ {"matrix": [1, 1], "x": 37, "y": 12, "flags": 4},
+ {"matrix": [1, 2], "x": 74, "y": 12, "flags": 4},
+ {"matrix": [1, 3], "x": 112, "y": 12, "flags": 4},
+ {"matrix": [1, 4], "x": 149, "y": 12, "flags": 4},
+ {"matrix": [1, 5], "x": 186, "y": 12, "flags": 4},
+ {"matrix": [1, 6], "x": 224, "y": 12, "flags": 4},
+ {"matrix": [2, 0], "x": 0, "y": 24, "flags": 4},
+ {"matrix": [2, 1], "x": 37, "y": 24, "flags": 4},
+ {"matrix": [2, 2], "x": 74, "y": 24, "flags": 4},
+ {"matrix": [2, 3], "x": 112, "y": 17, "flags": 4},
+ {"matrix": [2, 4], "x": 149, "y": 17, "flags": 4},
+ {"matrix": [2, 5], "x": 186, "y": 17, "flags": 4},
+ {"matrix": [3, 3], "x": 112, "y": 38, "flags": 4},
+ {"matrix": [3, 4], "x": 149, "y": 38, "flags": 4},
+ {"matrix": [3, 5], "x": 186, "y": 38, "flags": 4},
+ {"matrix": [3, 6], "x": 224, "y": 38, "flags": 4},
+ {"matrix": [4, 1], "x": 37, "y": 51, "flags": 4},
+ {"matrix": [4, 3], "x": 112, "y": 51, "flags": 4},
+ {"matrix": [4, 4], "x": 149, "y": 51, "flags": 4},
+ {"matrix": [4, 5], "x": 186, "y": 51, "flags": 4},
+ {"matrix": [5, 0], "x": 0, "y": 64, "flags": 4},
+ {"matrix": [5, 1], "x": 37, "y": 64, "flags": 4},
+ {"matrix": [5, 2], "x": 74, "y": 64, "flags": 4},
+ {"matrix": [5, 4], "x": 149, "y": 64, "flags": 4},
+ {"matrix": [5, 5], "x": 186, "y": 64, "flags": 4},
+ {"matrix": [5, 6], "x": 224, "y": 64, "flags": 4}
+ ],
"max_brightness": 200
},
"features": {
diff --git a/keyboards/magic_force/mf34/mf34.c b/keyboards/magic_force/mf34/mf34.c
deleted file mode 100644
index 8cced36866..0000000000
--- a/keyboards/magic_force/mf34/mf34.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
-Copyright 2015 Álvaro "Gondolindrim" Volpato <[email protected]>
-
-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
-
-// RGB Matrix
-led_config_t g_led_config = {
- {
- // Key Matrix to LED Index
- { 0, 1, 2, 3 , 4, 5, 6},
- { 7, 8, 9, 10, 11, 12, 13 },
- { 14, 15, 16, 17, 18, 19, NO_LED },
- { NO_LED, NO_LED, NO_LED, 20, 21, 22, 23 },
- { NO_LED, 24, NO_LED, 25, 26, 27, NO_LED },
- { 28, 29, 30, NO_LED, 31, 32, 33 }
- }, {
- {0, 0}, {37, 0}, {74, 0}, {112, 0}, {149, 0}, {186, 0}, {224, 0},
- {0, 12}, {37, 12}, {74, 12}, {112, 12}, {149, 12}, {186, 12}, {224, 12},
- {0, 24}, {37, 24}, {74, 24}, {112, 17}, {149, 17}, {186, 17},
- {112, 38}, {149, 38}, {186, 38}, {224, 38},
- {37, 51}, {112, 51}, {149, 51}, {186, 51},
- {0, 64}, {37, 64}, {74, 64}, {149, 64}, {186, 64}, {224, 64}
- }, {
- 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4,
- 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4
- }
-};
-#endif