diff options
Diffstat (limited to 'keyboards/bastardkb/tbkmini/tbkmini.c')
-rw-r--r-- | keyboards/bastardkb/tbkmini/tbkmini.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/keyboards/bastardkb/tbkmini/tbkmini.c b/keyboards/bastardkb/tbkmini/tbkmini.c new file mode 100644 index 000000000..7bbd374c0 --- /dev/null +++ b/keyboards/bastardkb/tbkmini/tbkmini.c | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | * Copyright 2021 Quentin LEBASTARD <[email protected]> | ||
3 | * | ||
4 | * This program is free software: you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation, either version 2 of the License, or | ||
7 | * (at your option) any later version. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include "tbkmini.h" | ||
19 | |||
20 | #ifdef RGB_MATRIX_ENABLE | ||
21 | led_config_t g_led_config = { { | ||
22 | // left | ||
23 | { 0, 5, 6, 11, 12, 15 }, | ||
24 | { 1, 4, 7, 10, 13, 16 }, | ||
25 | { 2, 3, 8, 9, 14, 17 }, | ||
26 | { NO_LED, 18, NO_LED, 19, 20, NO_LED }, | ||
27 | // right | ||
28 | { 21, 26, 27, 32, 33, 36 }, | ||
29 | { 22, 25, 28, 31, 34, 37 }, | ||
30 | { 23, 24, 29, 30, 35, 38 }, | ||
31 | { NO_LED, 39, NO_LED, 40, 41, NO_LED } | ||
32 | }, { | ||
33 | // left | ||
34 | { 0, 0 }, { 0, 21 }, { 0, 42 }, // col 1 | ||
35 | { 20, 42 }, { 20, 21 }, { 20, 0 }, // col 2 | ||
36 | { 41, 0 }, { 41, 21 }, { 41, 42 }, | ||
37 | { 61, 42 }, { 61, 21 }, { 61, 0 }, | ||
38 | { 81, 0 }, { 81, 21 }, { 81, 42 }, | ||
39 | { 102, 0 }, { 102, 21 }, { 102, 42 }, | ||
40 | { 61, 64 }, { 81, 64 }, { 102, 64 }, // left thumb cluster | ||
41 | // right | ||
42 | { 224, 0 }, { 224, 21 }, { 224, 42 }, // col 12 | ||
43 | { 204, 42 }, { 204, 21 }, { 204, 0 }, // col 11 | ||
44 | { 183, 0 }, { 183, 21 }, { 183, 42 }, | ||
45 | { 163, 42 }, { 163, 21 }, { 163, 0 }, | ||
46 | { 142, 0 }, { 142, 21 }, { 142, 42 }, | ||
47 | { 122, 0 }, { 122, 21 }, { 122, 42 }, | ||
48 | { 163, 64 }, { 142, 64 }, { 122, 64 } // right thumb cluster | ||
49 | }, { | ||
50 | // left | ||
51 | 2, 2, 2, 4, 4, 4, 4, 4, 4, | ||
52 | 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
53 | 2, 2, 2, | ||
54 | // right | ||
55 | 2, 2, 2, 4, 4, 4, 4, 4, 4, | ||
56 | 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
57 | 2, 2, 2 | ||
58 | } }; | ||
59 | #endif | ||