-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkb.c
More file actions
32 lines (29 loc) · 1.38 KB
/
Copy pathkb.c
File metadata and controls
32 lines (29 loc) · 1.38 KB
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
#include "kb.h"
#include "quantum.h"
#include "rgb_matrix_types.h"
led_config_t g_led_config = {
// Key to LED map
{
{ 0, 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, NO_LED, 40 },
{ 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, NO_LED, NO_LED, 52 },
{ 53, 54, NO_LED, 55, NO_LED, 56, NO_LED, 57, NO_LED, 58, 59, NO_LED, NO_LED, NO_LED }
},
// LED positions (70 个元素)
{
{ 4, 4},{ 12, 4},{ 20, 4},{ 28, 4},{ 36, 4},{ 44, 4},{ 52, 4},{ 60, 4},{ 68, 4},{ 76, 4},{ 84, 4},{ 92, 4},{100, 4},{108, 4},
{ 4, 12},{ 12, 12},{ 20, 12},{ 28, 12},{ 36, 12},{ 44, 12},{ 52, 12},{ 60, 12},{ 68, 12},{ 76, 12},{ 84, 12},{ 92, 12},{100, 12},{108, 12},
{ 4, 20},{ 12, 20},{ 20, 20},{ 28, 20},{ 36, 20},{ 44, 20},{ 52, 20},{ 60, 20},{ 68, 20},{ 76, 20},{ 84, 20},{ 92, 20},{100, 20},
{ 4, 28},{ 12, 28},{ 20, 28},{ 28, 28},{ 36, 28},{ 44, 28},{ 52, 28},{ 60, 28},{ 68, 28},{ 76, 28},{ 84, 28},{ 92, 28},
{ 4, 36},{ 12, 36},{ 28, 36},{ 44, 36},{ 60, 36},{ 76, 36},{ 92, 36}
},
// LED radius (70 个元素)
{
4,4,4,4,4,4,4,4,4,4,4,4,4,4,
4,4,4,4,4,4,4,4,4,4,4,4,4,4,
4,4,4,4,4,4,4,4,4,4,4,4,4,
4,4,4,4,4,4,4,4,4,4,4,4,
4,4,4,4,4,4,4
}
};