1
0

Migrate g_led_config to DD (YZ) (#25650)

This commit is contained in:
Jack Sangdahl
2025-09-11 11:34:10 -06:00
committed by GitHub
parent 6eee1940e8
commit 74b0f054c1
16 changed files with 380 additions and 303 deletions

View File

@@ -1,35 +0,0 @@
/* Copyright 2020 Yncognito
*
* 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 ={
{
{4 ,5 ,6 ,7 },
{0 ,1 ,2 ,3 }
},
{
{0,0},{75,0},{145,0},{224,0},
{0,64},{75,64},{145,64},{224,64}
},
{
0x04,0x04,0x04,0x04,
0x04,0x04,0x04,0x04
}
};
#endif

View File

@@ -60,6 +60,16 @@
"animation": "cycle_all"
},
"driver": "ws2812",
"layout": [
{"matrix": [1, 0], "x": 0, "y": 0, "flags": 4},
{"matrix": [1, 1], "x": 75, "y": 0, "flags": 4},
{"matrix": [1, 2], "x": 145, "y": 0, "flags": 4},
{"matrix": [1, 3], "x": 224, "y": 0, "flags": 4},
{"matrix": [0, 0], "x": 0, "y": 64, "flags": 4},
{"matrix": [0, 1], "x": 75, "y": 64, "flags": 4},
{"matrix": [0, 2], "x": 145, "y": 64, "flags": 4},
{"matrix": [0, 3], "x": 224, "y": 64, "flags": 4}
],
"react_on_keyup": true
},
"features": {