diff options
Diffstat (limited to 'keyboards/boardsource/the_mark/the_mark.c')
-rw-r--r-- | keyboards/boardsource/the_mark/the_mark.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/keyboards/boardsource/the_mark/the_mark.c b/keyboards/boardsource/the_mark/the_mark.c new file mode 100644 index 000000000..59aff7f9a --- /dev/null +++ b/keyboards/boardsource/the_mark/the_mark.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* Copyright 2020 Boardsource | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include "the_mark.h" | ||
18 | |||
19 | /* Map physical under glow LEDs for RGB matrix support */ | ||
20 | #ifdef RGB_MATRIX_ENABLE | ||
21 | led_config_t g_led_config = { { | ||
22 | // Key Matrix to LED Index | ||
23 | { 10 , NO_LED, 9 , NO_LED, 8 , 7 , NO_LED, 6 , 5 , NO_LED, 4 , 3 , NO_LED, 2 , NO_LED, 1 }, | ||
24 | { 11 , NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 0 }, | ||
25 | { 12 , NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 23 }, | ||
26 | { 13 , NO_LED, 14 , NO_LED, 15 , 16 , NO_LED, 17 , 18 , NO_LED, 19 , 20 , NO_LED, 21 , NO_LED, NO_LED }, | ||
27 | { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 22 }, | ||
28 | }, { | ||
29 | // LED Index to Physical Position | ||
30 | {224, 42}, {224, 21}, {209, 21}, {179, 21}, {164, 21}, {134, 21}, {119, 21}, {89, 21}, {74, 21}, {45, 21}, {30, 21}, {30, 42}, | ||
31 | {30, 64}, {30, 85}, {45, 85}, {74, 85}, {89, 85}, {119, 85}, {134, 85}, {164, 85}, {179, 85}, {209, 85}, {224, 85}, {224, 64} | ||
32 | }, { | ||
33 | // LED Index to Flag | ||
34 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, | ||
35 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, | ||
36 | LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL | ||
37 | } }; | ||
38 | |||
39 | |||
40 | void suspend_power_down_kb(void) { | ||
41 | rgb_matrix_set_suspend_state(true); | ||
42 | suspend_power_down_user(); | ||
43 | } | ||
44 | |||
45 | void suspend_wakeup_init_kb(void) { | ||
46 | rgb_matrix_set_suspend_state(false); | ||
47 | suspend_wakeup_init_user(); | ||
48 | } | ||
49 | #endif | ||