summaryrefslogtreecommitdiffstats
path: root/keyboards/marksard/rhymestone/rev1/rev1.c
blob: a4dadd55cbf00e54f4da1176a5667abccf6bd628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* Copyright 2020 marksard
 *
 * 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 "rev1.h"

// Optional override functions below.
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.

#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
    {  10,  11,  12,  13,   0 },
    {   9,  18,  19,  14,   1 },
    {   8,  17,  16,  15,   2 },
    {   7,   6,   5,   4,   3 },
    {  30,  31,  32,  33,  20 },
    {  29,  38,  39,  34,  21 },
    {  28,  37,  36,  35,  22 },
    {  27,  26,  25,  24,  23 }
}, {
    { 100,   0 }, { 100,  21 }, { 100,  43 }, { 100,  64 },
    {  75,  64 }, {  50,  64 }, {  25,  64 }, {   0,  64 },
    {   0,  43 }, {   0,  21 }, {   0,   0 },
    {  25,   0 }, {  50,   0 }, {  75,   0 },
    {  75,  21 }, {  75,  43 },
    {  50,  43 }, {  25,  43 },
    {  25,  21 }, {  50,  21 },
    { 125,   0 }, { 125,  21 }, { 125,  43 }, { 125,  64 },
    { 150,  64 }, { 175,  64 }, { 200,  64 }, { 225,  64 },
    { 225,  43 }, { 225,  21 }, { 225,   0 },
    { 200,   0 }, { 175,   0 }, { 150,   0 },
    { 150,  21 }, { 150,  43 },
    { 175,  43 }, { 200,  43 },
    { 200,  21 }, { 150,  21 }
}, {
    4, 4, 4, 1,
    1, 1, 1, 1,
    4, 4, 4, 4,
    4, 4, 4, 4,
    4, 4, 4, 4,
    4, 4, 4, 1,
    1, 1, 1, 1,
    4, 4, 4, 4,
    4, 4, 4, 4,
    4, 4, 4, 4
} };
#endif

__attribute__((weak))
void matrix_init_user(void) {}

void matrix_init_kb(void) {

#ifdef RGB_MATRIX_ENABLE
    // if (!is_keyboard_master()) {
    //     g_led_config = (led_config_t){ {
    //         {  30,  31,  32,  33,  20 },
    //         {  29,  38,  39,  34,  21 },
    //         {  28,  37,  36,  35,  22 },
    //         {  27,  26,  25,  24,  23 },
    //         {  10,  11,  12,  13,   0 },
    //         {   9,  18,  19,  14,   1 },
    //         {   8,  17,  16,  15,   2 },
    //         {   7,   6,   5,   4,   3 }
    //     }, {
    //         { 125,   0 }, { 125,  21 }, { 125,  43 }, { 125,  64 },
    //         { 150,  64 }, { 175,  64 }, { 200,  64 }, { 225,  64 },
    //         { 225,  43 }, { 225,  21 }, { 225,   0 },
    //         { 200,   0 }, { 175,   0 }, { 150,   0 },
    //         { 150,  21 }, { 150,  43 },
    //         { 175,  43 }, { 200,  43 },
    //         { 200,  21 }, { 150,  21 },
    //         { 100,   0 }, { 100,  21 }, { 100,  43 }, { 100,  64 },
    //         {  75,  64 }, {  50,  64 }, {  25,  64 }, {   0,  64 },
    //         {   0,  43 }, {   0,  21 }, {   0,   0 },
    //         {  25,   0 }, {  50,   0 }, {  75,   0 },
    //         {  75,  21 }, {  75,  43 },
    //         {  50,  43 }, {  25,  43 },
    //         {  25,  21 }, {  50,  21 }
    //     }, {
    //         4, 4, 4, 1,
    //         1, 1, 1, 1,
    //         4, 4, 4, 4,
    //         4, 4, 4, 4,
    //         4, 4, 4, 4,
    //         4, 4, 4, 1,
    //         1, 1, 1, 1,
    //         4, 4, 4, 4,
    //         4, 4, 4, 4,
    //         4, 4, 4, 4
    //     } };
    // }
#endif
    matrix_init_user();
}