]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/geekboards/tester/tester.c
Add missing links to features page and sidebar section (#5949)
[qmk_firmware.git] / keyboards / geekboards / tester / tester.c
1 #include "tester.h"
2 const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
3 /* Refer to IS31 manual for these locations
4  *   driver
5  *   |  R location
6  *   |  |      G location
7  *   |  |      |      B location
8  *   |  |      |      | */
9     {0, C1_1,   C3_2,   C4_2}, //A1
10     {0, C1_2,   C2_2,   C4_3}, //A2
11     {0, C1_3,   C2_3,   C3_3}, //A3
12     {0, C1_4,   C2_4,   C3_4}, //A4
13     {0, C1_5,   C2_5,   C3_5}, //A5
14     {0, C1_6,   C2_6,   C3_6}, //A6
15     {0, C1_7,   C2_7,   C3_7}, //A7
16     {0, C1_8,   C2_8,   C3_8}, //A8
17 };
18
19 led_config_t g_led_config = { 
20 {
21     {  0,  1,  2,  3},
22     {  4,  5,  6,  7}
23 }, 
24 {
25     { 0,   0 }, { 75,   0 }, { 151,   0 }, { 224,   0 }, { 0,   64 }, { 75,   64 }, { 151,   64 }, { 224,  64 }
26 }, 
27 {
28     4, 4, 4, 4, 4, 4, 4, 4
29
30 };
31
32
33
34 void matrix_init_kb(void) {
35         matrix_init_user();
36 }
37
38 void matrix_scan_kb(void) {
39         matrix_scan_user();
40 }
41
42 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
43         return process_record_user(keycode, record);
44 }
45
46 void suspend_power_down_kb(void)
47 {
48     rgb_matrix_set_suspend_state(true);
49         suspend_power_down_user();
50 }
51
52 void suspend_wakeup_init_kb(void)
53 {
54     rgb_matrix_set_suspend_state(false);
55     suspend_wakeup_init_user();
56 }