]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lfkeyboards/lighting.h
[Keyboard] Snagpad Configurator bugfix and readme refactor (#6381)
[qmk_firmware.git] / keyboards / lfkeyboards / lighting.h
1 #ifndef LIGHTING_H
2 #define LIGHTING_H
3
4
5 // rgb_sequence[RGBLED_NUM]
6 //
7 // Array used for sequential lighting effects.
8 //
9 // Example LFK78 RevC+ RGB Map:
10 //   27  29  10   9   8   7   6
11 // 26                                   5
12 // 25                                   4
13 // 24                                   3
14 //   23  22  21  20  14  15  11   1   2
15 //
16 // const uint8_t rgb_sequence[] = {
17 //     27, 29, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1,
18 //     11, 15, 14, 20, 21, 22, 23, 24, 25, 26
19 // };
20 extern const uint8_t rgb_sequence[RGBLED_NUM];
21
22 // switch_matrices[]
23 //
24 // The ISSI matrices for switch backlighting
25 //
26 // Example LFK78 RevC+ - ISSI Device 0, banks 0 and 1:
27 // switch_matrices[] = {0, 1};
28 extern const uint8_t switch_matrices[];
29
30 // rgb_matrices[]
31 // The ISSI matrices for RGB Underglow
32 //
33 // Example LFK78 RevC+ - ISSI Device 3, banks 0 and 1:
34 // rgb_matrices[] = {6, 7};
35 extern const uint8_t rgb_matrices[];
36
37 // switch_leds[MATRIX_ROWS][MATRIX_COLS]
38 // Maps switch LEDs from Row/Col to ISSI matrix.
39 // Value breakdown:
40 //     Bit     | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
41 //             |   | ISSI Col  |    ISSI Row   |
42 //             |   |
43 //             Device
44 extern const uint8_t switch_leds[MATRIX_ROWS][MATRIX_COLS];
45
46 void led_test(void);
47 void force_issi_refresh(void);
48 void set_backlight(uint8_t level);
49 void set_underglow(uint8_t red, uint8_t green, uint8_t blue);
50 void set_rgb(uint8_t rgb_led, uint8_t red, uint8_t green, uint8_t blue);
51 void set_backlight_by_keymap(uint8_t col, uint8_t row);
52
53 #endif