1
0

Migrate g_led_config to DD (E, F) (#25561)

This commit is contained in:
Jack Sangdahl
2025-09-09 02:59:42 -06:00
committed by GitHub
parent 330d195f9a
commit 6aa85699a5
16 changed files with 480 additions and 381 deletions

View File

@@ -1,55 +0,0 @@
/* Copyright 2020 klackygears
*
* 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
// Logical Layout
// Columns
// 0 1 2 3 4
// ROWS
// 4 3 2 1 0 0
// 5 6 7 8 9 1
// 14 13 12 11 10 2
// 15 16 17 3
// Logical Layout v1.3
// Columns
// 0 1 2 3 4 5 6 7 8 9
// ROWS
// 0 1 2 3 4 5 6 7 8 9 0
// 19 18 17 16 15 14 13 12 11 10 1
// 20 21 22 23 24 25 26 27 28 29 2
// 35 34 33 32 31 30 3
led_config_t g_led_config = { {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
{ 19, 18, 17, 16, 15, 14, 13, 12, 11, 10 },
{ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 },
{ NO_LED, NO_LED, 35, 34, 33, 32, 31, 30, NO_LED, NO_LED }
}, {
{ 31, 0 }, { 46, 0 }, { 62, 0 }, { 77, 7 }, { 93, 13 }, { 131, 13 }, { 147, 7 }, { 162, 0 }, { 178, 0 }, { 193, 0 },
{ 201, 10 }, { 185, 10 }, { 170, 10 }, { 154, 17 }, { 139, 24 }, { 85, 24 }, { 70, 17 }, { 54, 10 }, { 39, 10 }, { 23, 10 },
{ 15, 20 }, { 31, 20 }, { 46, 20 }, { 62, 27 }, { 77, 34 }, { 147, 34 }, { 162, 27 }, { 178, 20 }, { 193, 20 }, { 209, 20 },
{ 185, 34 }, { 170, 37 }, { 154, 44 }, { 70, 44 }, { 54, 37 }, { 39, 34 },
}, {
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,
1, 1, 1, 1, 1, 1,
} };
#endif

View File

@@ -13,6 +13,44 @@
"val": 150
},
"driver": "ws2812",
"layout": [
{"matrix": [0, 0], "x": 31, "y": 0, "flags": 4},
{"matrix": [0, 1], "x": 46, "y": 0, "flags": 4},
{"matrix": [0, 2], "x": 62, "y": 0, "flags": 4},
{"matrix": [0, 3], "x": 77, "y": 7, "flags": 4},
{"matrix": [0, 4], "x": 93, "y": 13, "flags": 4},
{"matrix": [0, 5], "x": 131, "y": 13, "flags": 4},
{"matrix": [0, 6], "x": 147, "y": 7, "flags": 4},
{"matrix": [0, 7], "x": 162, "y": 0, "flags": 4},
{"matrix": [0, 8], "x": 178, "y": 0, "flags": 4},
{"matrix": [0, 9], "x": 193, "y": 0, "flags": 4},
{"matrix": [1, 9], "x": 201, "y": 10, "flags": 4},
{"matrix": [1, 8], "x": 185, "y": 10, "flags": 4},
{"matrix": [1, 7], "x": 170, "y": 10, "flags": 4},
{"matrix": [1, 6], "x": 154, "y": 17, "flags": 4},
{"matrix": [1, 5], "x": 139, "y": 24, "flags": 4},
{"matrix": [1, 4], "x": 85, "y": 24, "flags": 4},
{"matrix": [1, 3], "x": 70, "y": 17, "flags": 4},
{"matrix": [1, 2], "x": 54, "y": 10, "flags": 4},
{"matrix": [1, 1], "x": 39, "y": 10, "flags": 4},
{"matrix": [1, 0], "x": 23, "y": 10, "flags": 4},
{"matrix": [2, 0], "x": 15, "y": 20, "flags": 4},
{"matrix": [2, 1], "x": 31, "y": 20, "flags": 4},
{"matrix": [2, 2], "x": 46, "y": 20, "flags": 4},
{"matrix": [2, 3], "x": 62, "y": 27, "flags": 4},
{"matrix": [2, 4], "x": 77, "y": 34, "flags": 4},
{"matrix": [2, 5], "x": 147, "y": 34, "flags": 4},
{"matrix": [2, 6], "x": 162, "y": 27, "flags": 4},
{"matrix": [2, 7], "x": 178, "y": 20, "flags": 4},
{"matrix": [2, 8], "x": 193, "y": 20, "flags": 4},
{"matrix": [2, 9], "x": 209, "y": 20, "flags": 4},
{"matrix": [3, 7], "x": 185, "y": 34, "flags": 1},
{"matrix": [3, 6], "x": 170, "y": 37, "flags": 1},
{"matrix": [3, 5], "x": 154, "y": 44, "flags": 1},
{"matrix": [3, 4], "x": 70, "y": 44, "flags": 1},
{"matrix": [3, 3], "x": 54, "y": 37, "flags": 1},
{"matrix": [3, 2], "x": 39, "y": 34, "flags": 1}
],
"max_brightness": 200
},
"features": {