mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
50 lines
2.5 KiB
C
50 lines
2.5 KiB
C
|
/* Copyright 2021 Tybera
|
||
|
* Copyright 2021 thewerther
|
||
|
*
|
||
|
* 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 "rgb.h"
|
||
|
|
||
|
#define __ NO_LED
|
||
|
|
||
|
// Indices are reveresed on the physical board, top left is bottom right.
|
||
|
led_config_t g_led_config = { {
|
||
|
// Key Matrix to LED Index
|
||
|
{66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52},
|
||
|
{51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37},
|
||
|
{36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, __, 24, 23},
|
||
|
{22, __, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9},
|
||
|
{ 8, 7, __, 6, __, __, 5, __, __, __, 4, 3, 2, 1, 0},
|
||
|
}, {
|
||
|
// LED Index to Physical Position
|
||
|
{224, 64}, {196, 64}, {168, 64}, {140, 64}, {112, 64}, {84, 64}, {56, 64}, {28, 64}, {0, 64},
|
||
|
{224, 48}, {206, 48}, {189, 48}, {172, 48}, {155, 48}, {137, 48}, {120, 48}, {103, 48}, {86, 48}, {68, 48}, {51, 48}, {34, 48}, {17, 48}, {0, 48},
|
||
|
{224, 32}, {206, 32}, {189, 32}, {172, 32}, {155, 32}, {137, 32}, {120, 32}, {103, 32}, {86, 32}, {68, 32}, {51, 32}, {34, 32}, {17, 32}, {0, 32},
|
||
|
{224, 16}, {208, 16}, {192, 16}, {176, 16}, {160, 16}, {144, 16}, {128, 16}, {112, 16}, {96, 16}, {80, 16}, {64, 16}, {48, 16}, {32, 16}, {16, 16}, {0, 16},
|
||
|
{224, 0}, {208, 0}, {192, 0}, {176, 0}, {160, 0}, {144, 0}, {128, 0}, {112, 0}, {96, 0}, {80, 0}, {64, 0}, {48, 0}, {32, 0}, {16, 0}, {0, 0},
|
||
|
// underglow LEDs
|
||
|
{0, 0}, {56, 0}, {112, 0}, {168, 0}, {224, 0},
|
||
|
{224, 64}, {168, 64}, {112, 64}, {56, 64}, {0, 64}
|
||
|
}, {
|
||
|
// LED Index to Flag
|
||
|
4, 4, 4, 1, 1, 4, 1, 1, 1, // first row
|
||
|
1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // second row
|
||
|
1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // third row
|
||
|
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fourth row
|
||
|
4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fifth row
|
||
|
// underglow leds
|
||
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2
|
||
|
} };
|