1
0

Migrate g_led_config to DD (NO) (#25621)

This commit is contained in:
Jack Sangdahl
2025-09-09 03:08:42 -06:00
committed by GitHub
parent 2818085d3f
commit ff1900190c
16 changed files with 468 additions and 260 deletions

View File

@@ -20,7 +20,25 @@
"default": {
"animation": "typing_heatmap"
},
"driver": "ws2812"
"driver": "ws2812",
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
{"matrix": [0, 1], "x": 75, "y": 0, "flags": 4},
{"matrix": [0, 2], "x": 150, "y": 0, "flags": 4},
{"matrix": [0, 3], "x": 224, "y": 0, "flags": 4},
{"matrix": [1, 0], "x": 0, "y": 21, "flags": 4},
{"matrix": [1, 1], "x": 75, "y": 21, "flags": 4},
{"matrix": [1, 2], "x": 150, "y": 21, "flags": 4},
{"matrix": [1, 3], "x": 224, "y": 21, "flags": 4},
{"matrix": [2, 0], "x": 0, "y": 42, "flags": 4},
{"matrix": [2, 1], "x": 75, "y": 42, "flags": 4},
{"matrix": [2, 2], "x": 150, "y": 42, "flags": 4},
{"matrix": [2, 3], "x": 224, "y": 42, "flags": 4},
{"matrix": [3, 0], "x": 0, "y": 64, "flags": 4},
{"matrix": [3, 1], "x": 75, "y": 64, "flags": 4},
{"matrix": [3, 2], "x": 150, "y": 64, "flags": 4},
{"matrix": [3, 3], "x": 224, "y": 64, "flags": 4}
]
},
"matrix_pins": {
"cols": ["B6", "B1", "B3", "B2"],

View File

@@ -1,31 +0,0 @@
/* Copyright 2023 Ning (@ningjx)
*
* 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"
led_config_t g_led_config = { {
{ 0, 1, 2, 3 },
{ 4, 5, 6, 7 },
{ 8, 9, 10, 11 },
{ 12, 13, 14, 15 }
}, {
{0,0},{75,0},{150,0},{224,0},
{0,21},{75,21},{150,21},{224,21},
{0,42},{75,42},{150,42},{224,42},
{0,64},{75,64},{150,64},{224,64}
}, {
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
} };