1
0

Migrate g_led_config to DD (0-9, A) (#25558)

This commit is contained in:
Jack Sangdahl
2025-09-30 10:09:31 -06:00
committed by GitHub
parent bbd6e8ab34
commit 36fd2437b0
22 changed files with 762 additions and 446 deletions

View File

@@ -1,27 +0,0 @@
// Copyright 2022 Arturo Avila (@ADPenrose)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
/* Setting up the LED matrix */
led_config_t g_led_config = { {
// Key Matrix to LED Index
{ 0, 1, 2, 3, NO_LED },
{ 4, 5, 6, 7, NO_LED },
{ 8, 9, 10, 11, 12 },
{ 13, 14, 15, 16, NO_LED },
{ 17, 18, 19, 20, 21 },
{ 22, 23, 24, 25, 26 },
}, {
// LED Index to Physical Position
{ 0,0 }, { 37,0 }, { 74,0 }, {111,0 }, { 0,34 }, { 37,34 }, { 74,34 }, {111,34 }, { 0,62 }, { 37,62 },
{ 74,62 }, {111,62 }, {120,75 }, { 0,89 }, { 37,89 }, { 74,89 }, {111,89 }, { 0,117}, { 37,117}, { 74,117},
{111,117}, {120,130}, { 0,137}, { 18,144}, { 37,137}, { 74,144}, {111,144}
}, {
// LED Index to Flag
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

View File

@@ -15,8 +15,36 @@
"cycle_left_right": true,
"cycle_up_down": true
},
"center_point": [60, 77],
"driver": "ws2812",
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0, "flags": 4},
{"matrix": [0, 1], "x": 69, "y": 0, "flags": 4},
{"matrix": [0, 2], "x": 138, "y": 0, "flags": 4},
{"matrix": [0, 3], "x": 207, "y": 0, "flags": 4},
{"matrix": [1, 0], "x": 0, "y": 13, "flags": 4},
{"matrix": [1, 1], "x": 69, "y": 13, "flags": 4},
{"matrix": [1, 2], "x": 138, "y": 13, "flags": 4},
{"matrix": [1, 3], "x": 207, "y": 13, "flags": 4},
{"matrix": [2, 0], "x": 0, "y": 26, "flags": 4},
{"matrix": [2, 1], "x": 69, "y": 26, "flags": 4},
{"matrix": [2, 2], "x": 138, "y": 26, "flags": 4},
{"matrix": [2, 3], "x": 207, "y": 26, "flags": 4},
{"matrix": [2, 4], "x": 224, "y": 30, "flags": 4},
{"matrix": [3, 0], "x": 0, "y": 38, "flags": 4},
{"matrix": [3, 1], "x": 69, "y": 38, "flags": 4},
{"matrix": [3, 2], "x": 138, "y": 38, "flags": 4},
{"matrix": [3, 3], "x": 207, "y": 38, "flags": 4},
{"matrix": [4, 0], "x": 0, "y": 52, "flags": 4},
{"matrix": [4, 1], "x": 69, "y": 52, "flags": 4},
{"matrix": [4, 2], "x": 138, "y": 52, "flags": 4},
{"matrix": [4, 3], "x": 207, "y": 52, "flags": 4},
{"matrix": [4, 4], "x": 224, "y": 56, "flags": 4},
{"matrix": [5, 0], "x": 0, "y": 62, "flags": 4},
{"matrix": [5, 1], "x": 33, "y": 64, "flags": 4},
{"matrix": [5, 2], "x": 69, "y": 62, "flags": 4},
{"matrix": [5, 3], "x": 138, "y": 64, "flags": 4},
{"matrix": [5, 4], "x": 207, "y": 64, "flags": 4}
],
"max_brightness": 175,
"sleep": true
},