aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonavin <71780717+Jonavin@users.noreply.github.com>2021-07-30 01:38:38 -0400
committerGitHub <noreply@github.com>2021-07-29 22:38:38 -0700
commit03212ced241522351f5e019946dd701c78793a1f (patch)
treef6f796c9db203b1475657488bb91b3f0437a2a38
parent7e1d28006ffeb66cd4d6a987f2aeea04587b87cb (diff)
downloadqmk_firmware-03212ced241522351f5e019946dd701c78793a1f.tar.gz
qmk_firmware-03212ced241522351f5e019946dd701c78793a1f.zip
[Keymap] jonavin gmmk pro keymap add RGB functionality (#13591)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Jonavin <=>
-rw-r--r--keyboards/gmmk/pro/keymaps/jonavin/config.h5
-rw-r--r--keyboards/gmmk/pro/keymaps/jonavin/keymap.c219
-rw-r--r--keyboards/gmmk/pro/keymaps/jonavin/readme.md22
-rw-r--r--keyboards/gmmk/pro/keymaps/jonavin/rgb_matrix_map.h144
4 files changed, 356 insertions, 34 deletions
diff --git a/keyboards/gmmk/pro/keymaps/jonavin/config.h b/keyboards/gmmk/pro/keymaps/jonavin/config.h
index d7219b257..b77cb05f5 100644
--- a/keyboards/gmmk/pro/keymaps/jonavin/config.h
+++ b/keyboards/gmmk/pro/keymaps/jonavin/config.h
@@ -26,3 +26,8 @@
26 //Always send Escape if Control is pressed 26 //Always send Escape if Control is pressed
27 27
28#define TAPPING_TERM 180 28#define TAPPING_TERM 180
29
30#ifdef RGB_MATRIX_ENABLE
31 #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
32 #define RGB_DISABLE_WHEN_USB_SUSPENDED true
33#endif
diff --git a/keyboards/gmmk/pro/keymaps/jonavin/keymap.c b/keyboards/gmmk/pro/keymaps/jonavin/keymap.c
index 7289c1dd9..8b3744957 100644
--- a/keyboards/gmmk/pro/keymaps/jonavin/keymap.c
+++ b/keyboards/gmmk/pro/keymaps/jonavin/keymap.c
@@ -16,6 +16,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#include QMK_KEYBOARD_H 18#include QMK_KEYBOARD_H
19#include "rgb_matrix_map.h"
20
21#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
19 22
20enum custom_layers { 23enum custom_layers {
21 _BASE, 24 _BASE,
@@ -27,6 +30,8 @@ enum custom_layers {
27enum custom_keycodes { 30enum custom_keycodes {
28 KC_00 = SAFE_RANGE, 31 KC_00 = SAFE_RANGE,
29 KC_WINLCK, //Toggles Win key on and off 32 KC_WINLCK, //Toggles Win key on and off
33 RGB_TOI, // Timeout idle time up
34 RGB_TOD, // Timeout idle time down
30}; 35};
31 36
32// Tap Dance Definitions 37// Tap Dance Definitions
@@ -43,31 +48,6 @@ qk_tap_dance_action_t tap_dance_actions[] = {
43 48
44bool _isWinKeyDisabled = false; 49bool _isWinKeyDisabled = false;
45 50
46bool process_record_user(uint16_t keycode, keyrecord_t *record) {
47 switch (keycode) {
48 case KC_00:
49 if (record->event.pressed) {
50 // when keycode KC_00 is pressed
51 SEND_STRING("00");
52 } else {
53 // when keycode KC_00 is released
54 }
55 break;
56
57 case KC_WINLCK:
58 if (record->event.pressed) {
59 _isWinKeyDisabled = !_isWinKeyDisabled; //toggle status
60 if(_isWinKeyDisabled) {
61 process_magic(GUI_OFF, record);
62 } else {
63 process_magic(GUI_ON, record);
64 }
65 } else unregister_code16(keycode);
66 break;
67 }
68 return true;
69};
70
71 51
72const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 52const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
73 53
@@ -93,8 +73,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
93 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, 73 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG,
94 _______, _______, RGB_VAI, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, RESET, KC_HOME, 74 _______, _______, RGB_VAI, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, RESET, KC_HOME,
95 KC_CAPS, _______, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, 75 KC_CAPS, _______, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END,
96 _______, _______, RGB_HUI, _______, _______, _______, KC_NLCK, _______, _______, _______, _______, _______, RGB_MOD, _______, 76 _______, _______, RGB_HUI, _______, _______, _______, KC_NLCK, _______, RGB_TOD, RGB_TOI, _______, _______, RGB_MOD, _______,
97 _______, KC_WINLCK, _______, _______, _______, _______, _______, RGB_SPD, RGB_RMOD, RGB_SPI 77 _______, KC_WINLCK, _______, _______, _______, _______, _______, RGB_SPD, RGB_RMOD, RGB_SPI
98 ), 78 ),
99 79
100 [_MO2] = LAYOUT( 80 [_MO2] = LAYOUT(
@@ -117,12 +97,93 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
117 97
118}; 98};
119 99
100
101// TIMEOUTS
102#define TIMEOUT_THRESHOLD_DEFAULT 5 // default timeout minutes
103#define TIMEOUT_THRESHOLD_MAX 140 // upper limits (2 hours and 10 minutes -- no rgb indicators above this value)
104static uint16_t timeout_timer = 0;
105static uint16_t timeout_counter = 0; //in minute intervals
106static uint16_t timeout_threshold = TIMEOUT_THRESHOLD_DEFAULT;
107
108void timeout_reset_timer(void) {
109 timeout_timer = timer_read();
110 timeout_counter = 0;
111};
112
113void timeout_update_threshold(bool increase) {
114 if (increase && timeout_threshold < TIMEOUT_THRESHOLD_MAX) timeout_threshold++;
115 if (!increase && timeout_threshold > 0) timeout_threshold--;
116};
117
118
119bool process_record_user(uint16_t keycode, keyrecord_t *record) {
120 switch (keycode) {
121 case KC_00:
122 if (record->event.pressed) {
123 // when keycode KC_00 is pressed
124 SEND_STRING("00");
125 } else {
126 // when keycode KC_00 is released
127 }
128 break;
129 case KC_WINLCK:
130 if (record->event.pressed) {
131 _isWinKeyDisabled = !_isWinKeyDisabled; //toggle status
132 if(_isWinKeyDisabled) {
133 process_magic(GUI_OFF, record);
134 } else {
135 process_magic(GUI_ON, record);
136 }
137 } else unregister_code16(keycode);
138 break;
139 case RGB_TOI:
140 if(record->event.pressed) {
141 timeout_update_threshold(true);
142 } else unregister_code16(keycode);
143 break;
144 case RGB_TOD:
145 if(record->event.pressed) {
146 timeout_update_threshold(false); //decrease timeout
147 } else unregister_code16(keycode);
148 break;
149 default:
150 if (record->event.pressed) { //reset activity timer
151 #ifdef RGB_MATRIX_ENABLE
152 rgb_matrix_enable();
153 #endif
154 timeout_reset_timer();
155 }
156 break;
157 }
158 return true;
159};
160
161void matrix_scan_user(void) {
162 if (timeout_threshold > 0) {
163 if (timer_elapsed(timeout_timer) >= 60000) { // 1 minute tick
164 timeout_counter++;
165 timeout_timer = timer_read();
166 }
167 #ifdef RGB_MATRIX_ENABLE
168 if (timeout_threshold > 0 && timeout_counter >= timeout_threshold) {
169 rgb_matrix_disable_noeeprom();
170 }
171 #endif
172 } // timeout_threshold = 0 will disable timeout
173};
174
175
120#ifdef ENCODER_ENABLE // Encoder Functionality 176#ifdef ENCODER_ENABLE // Encoder Functionality
177 uint8_t selected_layer = 0;
121 178
122 bool encoder_update_user(uint8_t index, bool clockwise) { 179 bool encoder_update_user(uint8_t index, bool clockwise) {
123
124 if ( clockwise ) { 180 if ( clockwise ) {
125 if (keyboard_report->mods & MOD_BIT(KC_LSFT) ) { // If you are holding L shift, Page up 181 if (keyboard_report->mods & MOD_BIT(KC_LSFT) ) { // If you are holding L shift, encoder changes layers
182 if(selected_layer < 3) {
183 selected_layer ++;
184 layer_move(selected_layer);
185 }
186 } else if (keyboard_report->mods & MOD_BIT(KC_RSFT) ) { // If you are holding R shift, Page up
126 unregister_mods(MOD_BIT(KC_LSFT)); 187 unregister_mods(MOD_BIT(KC_LSFT));
127 register_code(KC_PGDN); 188 register_code(KC_PGDN);
128 register_mods(MOD_BIT(KC_LSFT)); 189 register_mods(MOD_BIT(KC_LSFT));
@@ -131,10 +192,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
131 } else if (keyboard_report->mods & MOD_BIT(KC_LALT)) { // if holding Left Alt, change media next track 192 } else if (keyboard_report->mods & MOD_BIT(KC_LALT)) { // if holding Left Alt, change media next track
132 tap_code(KC_MEDIA_NEXT_TRACK); 193 tap_code(KC_MEDIA_NEXT_TRACK);
133 } else { 194 } else {
134 tap_code(KC_VOLU); // Otherwise it just changes volume 195 switch (selected_layer) {
196 case _FN1:
197 timeout_update_threshold(true);
198 break;
199 default:
200 tap_code(KC_VOLU); // Otherwise it just changes volume
201 break;
202 }
135 } 203 }
136 } else { 204 } else {
137 if (keyboard_report->mods & MOD_BIT(KC_LSFT) ) { 205 if (keyboard_report->mods & MOD_BIT(KC_LSFT) ) {
206 if (selected_layer > 0) {
207 selected_layer --;
208 layer_move(selected_layer);
209 }
210 } else if (keyboard_report->mods & MOD_BIT(KC_RSFT) ) {
138 unregister_mods(MOD_BIT(KC_LSFT)); 211 unregister_mods(MOD_BIT(KC_LSFT));
139 register_code(KC_PGUP); 212 register_code(KC_PGUP);
140 register_mods(MOD_BIT(KC_LSFT)); 213 register_mods(MOD_BIT(KC_LSFT));
@@ -143,9 +216,93 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
143 } else if (keyboard_report->mods & MOD_BIT(KC_LALT)) { // if holding Left Alt, change media previous track 216 } else if (keyboard_report->mods & MOD_BIT(KC_LALT)) { // if holding Left Alt, change media previous track
144 tap_code(KC_MEDIA_PREV_TRACK); 217 tap_code(KC_MEDIA_PREV_TRACK);
145 } else { 218 } else {
146 tap_code(KC_VOLD); 219 switch (selected_layer) {
220 case _FN1:
221 timeout_update_threshold(false);
222 break;
223 default:
224 tap_code(KC_VOLD);
225 break;
226 }
147 } 227 }
148 } 228 }
229
149 return true; 230 return true;
150 } 231 }
151#endif 232#endif
233
234#ifdef RGB_MATRIX_ENABLE
235 // Capslock, Scroll lock and Numlock indicator on Left side lights.
236 void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
237 if (IS_HOST_LED_ON(USB_LED_SCROLL_LOCK)) {
238 rgb_matrix_set_color(LED_L1, RGB_GREEN);
239 rgb_matrix_set_color(LED_L2, RGB_GREEN);
240 }
241 if (!IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // on if NUM lock is OFF
242 rgb_matrix_set_color(LED_L3, RGB_MAGENTA);
243 rgb_matrix_set_color(LED_L4, RGB_MAGENTA);
244 }
245 if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) {
246 rgb_matrix_set_color(LED_L5, RGB_RED);
247 rgb_matrix_set_color(LED_L6, RGB_RED);
248 rgb_matrix_set_color(LED_L7, RGB_RED);
249 }
250 if (_isWinKeyDisabled) {
251 rgb_matrix_set_color(LED_LWIN, RGB_RED); //light up Win key when disabled
252 }
253 switch(get_highest_layer(layer_state)){ // special handling per layer
254 case _FN1: // on Fn layer select what the encoder does when pressed
255 rgb_matrix_set_color(LED_R2, RGB_RED);
256 rgb_matrix_set_color(LED_R3, RGB_RED);
257 rgb_matrix_set_color(LED_R4, RGB_RED);
258 rgb_matrix_set_color(LED_FN, RGB_RED); //FN key
259
260 // Add RGB Timeout Indicator -- shows 0 to 139 using F row and num row; larger numbers using 16bit code
261 if (timeout_threshold <= 10) rgb_matrix_set_color(LED_LIST_FUNCROW[timeout_threshold], RGB_RED);
262 else if (timeout_threshold < 140) {
263 rgb_matrix_set_color(LED_LIST_FUNCROW[(timeout_threshold / 10)], RGB_RED);
264 rgb_matrix_set_color(LED_LIST_NUMROW[(timeout_threshold % 10)], RGB_RED);
265 } else { // >= 140 minutes, just show these 3 lights
266 rgb_matrix_set_color(LED_LIST_NUMROW[10], RGB_RED);
267 rgb_matrix_set_color(LED_LIST_NUMROW[11], RGB_RED);
268 rgb_matrix_set_color(LED_LIST_NUMROW[12], RGB_RED);
269 }
270 break;
271 case _MO2:
272 for (uint8_t i=0; i<ARRAYSIZE(LED_LIST_NUMPAD); i++) {
273 rgb_matrix_set_color(LED_LIST_NUMPAD[i], RGB_MAGENTA);
274 }
275 rgb_matrix_set_color(LED_R4, RGB_MAGENTA);
276 rgb_matrix_set_color(LED_R5, RGB_MAGENTA);
277 rgb_matrix_set_color(LED_R6, RGB_MAGENTA);
278 break;
279 case _MO3:
280 rgb_matrix_set_color(LED_R6, RGB_GREEN);
281 rgb_matrix_set_color(LED_R7, RGB_GREEN);
282 rgb_matrix_set_color(LED_R8, RGB_GREEN);
283 break;
284 default:
285 break;
286 }
287 }
288
289 void suspend_power_down_user(void) {
290 rgb_matrix_set_suspend_state(true);
291 }
292
293 void suspend_wakeup_init_user(void) {
294 rgb_matrix_set_suspend_state(false);
295 }
296#endif
297
298
299void keyboard_post_init_user(void) {
300
301 if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // turn on Num lock by defautl so that the numpad layer always has predictable results
302 tap_code(KC_NUMLOCK);
303 }
304 timeout_timer = timer_read(); // set inital time for ide timeout
305 #ifdef RGB_MATRIX_ENABLE
306 rgb_matrix_set_color_all(RGB_NAUTILUS); // Default startup colour
307 #endif
308}
diff --git a/keyboards/gmmk/pro/keymaps/jonavin/readme.md b/keyboards/gmmk/pro/keymaps/jonavin/readme.md
index 45bfedb51..f4f3401ab 100644
--- a/keyboards/gmmk/pro/keymaps/jonavin/readme.md
+++ b/keyboards/gmmk/pro/keymaps/jonavin/readme.md
@@ -1,6 +1,6 @@
1# jonavin's GMMK Pro layout 1# jonavin's GMMK Pro layout
2 2
3- Add all the non-RGB related keys from Glorious Core default mapping that's missing in the default qmk mapping 3- Add Fn layer keys from Glorious Core mapping that's missing in the default qmk mapping
4- Add PrtScr, Scroll Lock, Break, NumLock to Fn layer 4- Add PrtScr, Scroll Lock, Break, NumLock to Fn layer
5- Implement Win key lock using Fn+Win like in Glorious Core firmware 5- Implement Win key lock using Fn+Win like in Glorious Core firmware
6- Layer 2 mod on Caps Lock with double-tap to switch to this layer, double tap to switch back 6- Layer 2 mod on Caps Lock with double-tap to switch to this layer, double tap to switch back
@@ -8,17 +8,33 @@
8- Layer 2 left spacebar Backspace 8- Layer 2 left spacebar Backspace
9- add double tap of Left Shift to toggle Caps Lock 9- add double tap of Left Shift to toggle Caps Lock
10- additional encoder functionality 10- additional encoder functionality
11 - holding L shift, Navigate page up/down 11 - FN Layer - change rgb idle timeout
12 - holding Left shift, change layers
13 - holding right shift, Navigate page up/down
12 - holding Left Ctrl, navigate prev/next word 14 - holding Left Ctrl, navigate prev/next word
13 - holding Left Alt, change media prev/next track 15 - holding Left Alt, change media prev/next track
14 - default is change volume 16 - default is change volume
17
18- LED/RGB Functionality
19 - RGB idle timeout (default 5 minutes)
20 - Can be changed in FN layer with < and > or encoder
21 - setting to zero disables timeout
22 - indicators in FN layer using RGB in FN and number rows to show the timeout in minutes
23 - LED address location map as enum definition
24 - LED group lists for arrows, numpad, F row, num row, left and right side LEDs
25 - default startuo in single mode with default colour
26 - Capslock, Scroll Lock, and Num Lock (not set) indicator on left side LED
27 - Layer indicator on right side LED
28 - Fn key light up red when Fn layer activate
29 - Win Key light up red when Win Lock mode enabled
30 - Layer 2 activation lights up Numpad area
15 31
16## All layers diagram 32## All layers diagram
17Default layer 33Default layer
18![image](https://user-images.githubusercontent.com/71780717/124177658-82324880-da7e-11eb-9421-b69100131062.png) 34![image](https://user-images.githubusercontent.com/71780717/124177658-82324880-da7e-11eb-9421-b69100131062.png)
19 35
20Fn Layer 36Fn Layer
21![image](https://user-images.githubusercontent.com/71780717/124176887-8742c800-da7d-11eb-9b19-156bd67cac7d.png) 37![image](https://user-images.githubusercontent.com/71780717/126086069-bc539ffc-3ab6-4ebb-9bef-5005f8add294.png)
22 38
23Layer 2 (Caps Lock Mod) 39Layer 2 (Caps Lock Mod)
24![image](https://user-images.githubusercontent.com/71780717/124177683-8b231a00-da7e-11eb-9434-e2475f679a54.png) 40![image](https://user-images.githubusercontent.com/71780717/124177683-8b231a00-da7e-11eb-9434-e2475f679a54.png)
diff --git a/keyboards/gmmk/pro/keymaps/jonavin/rgb_matrix_map.h b/keyboards/gmmk/pro/keymaps/jonavin/rgb_matrix_map.h
new file mode 100644
index 000000000..1ee538890
--- /dev/null
+++ b/keyboards/gmmk/pro/keymaps/jonavin/rgb_matrix_map.h
@@ -0,0 +1,144 @@
1/* Copyright 2021 Jonavin Eng
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#ifdef RGB_MATRIX_ENABLE
18
19 // Custom RGB Colours
20 #define RGB_GODSPEED 0x00, 0xE4, 0xFF // colour for matching keycaps
21 #define RGB_NAUTILUS 0x00, 0xA4, 0xA9 // Naurilus Font colours
22
23 // RGB LED locations
24 enum led_location_map {
25 LED_ESC, // 0, ESC, k13
26 LED_GRV, // 1, ~, k16
27 LEB_TAB, // 2, Tab, k11
28 LED_CAPS, // 3, Caps, k21
29 LED_LSFT, // 4, Sh_L, k00
30 LED_LCTL, // 5, Ct_L, k06
31 LED_F1, // 6, F1, k26
32 LED_1, // 7, 1, k17
33 LED_Q, // 8, Q, k10
34 LED_A, // 9, A, k12
35 LED_Z, // 10, Z, k14
36 LED_LWIN, // 11, Win_L, k90
37 LED_F2, // 12, F2, k36
38 LED_2, // 13, 2, k27
39 LED_W, // 14, W, k20
40 LED_S, // 15, S, k22
41 LED_X, // 16, X, k24
42 LED_LALT, // 17, Alt_L, k93
43 LED_F3, // 18, F3, k31
44 LED_3, // 19, 3, k37
45 LED_E, // 20, E, k30
46 LED_D, // 21, D, k32
47 LED_C, // 22, C, k34
48 LED_F4, // 23, F4, k33
49 LED_4, // 24, 4, k47
50 LED_R, // 25, R, k40
51 LED_F, // 26, F, k42
52 LED_V, // 27, V, k44
53 LED_F5, // 28, F5, k07
54 LED_5, // 29, 5, k46
55 LED_T, // 30, T, k41
56 LED_G, // 31, G, k43
57 LED_B, // 32, B, k45
58 LED_SPC, // 33, SPACE, k94
59 LED_F6, // 34, F6, k63
60 LED_6, // 35, 6, k56
61 LED_Y, // 36, Y, k51
62 LED_H, // 37, H, k53
63 LED_N, // 38, N, k55
64 LED_F7, // 39, F7, k71
65 LED_7, // 40, 7, k57
66 LED_U, // 41, U, k50
67 LED_J, // 42, J, k52
68 LED_M, // 43, M, k54
69 LED_F8, // 44, F8, k76
70 LED_8, // 45, 8, k67
71 LED_I, // 46, I, k60
72 LED_K, // 47, K, k62
73 LED_COMM, // 48, ,, k64
74 LED_RALT, // 49, Alt_R, k95
75 LED_F9, // 50, F9, ka6
76 LED_9, // 51, 9, k77
77 LED_O, // 52, O, k70
78 LED_L, // 53, L, k72
79 LED_DOT, // 54, ., k74
80 LED_FN, // 55, FN, k92
81 LED_F10, // 56, F10, ka7
82 LED_0, // 57, 0, k87
83 LED_P, // 58, P, k80
84 LED_SCLN, // 59, ;, k82
85 LED_SLSH, // 60, ?, k85
86 LED_F11, // 61, F11, ka3
87 LED_MINS, // 62, -, k86
88 LED_LBRC, // 63, [, k81
89 LED_QUOT, // 64, ", k83
90 LED_RCTL, // 65, Ct_R, k04
91 LED_F12, // 66, F12, ka5
92 LED_L1, // 67, LED, l01
93 LED_R1, // 68, LED, l11
94 LED_INS, // 69, Prt, k97 -- remapped to INS
95 LED_L2, // 70, LED, l02
96 LED_R2, // 71, LED, l12
97 LED_DEL, // 72, Del, k65
98 LED_L3, // 73, LED, l03
99 LED_R3, // 74, LED, l13
100 LED_PGUP, // 75, PgUp, k15
101 LED_L4, // 76, LED, l04
102 LED_R4, // 77, LED, l14
103 LED_EQL, // 78, =, k66
104 LED_RIGHT, // 79, Right, k05
105 LED_L5, // 80, LED, l05
106 LED_R5, // 81, LED, l15
107 LED_END, // 82, End, k75
108 LED_L6, // 83, LED, l06
109 LED_R6, // 84, LED, l16
110 LED_BSPC, // 85, BSpc, ka1
111 LED_PGDN, // 86, PgDn, k25
112 LED_L7, // 87, LED, l07
113 LED_R7, // 88, LED, l17
114 LED_RBRC, // 89, ], k61
115 LED_RSFT, // 90, Sh_R, k91
116 LED_L8, // 91, LED, l08
117 LED_R8, // 92, LED, l18
118 LED_BSLS, // 93, \, ka2
119 LED_UP, // 94, Up, k35
120 LED_LEFT, // 95, Left, k03
121 LED_ENT, // 96, Enter, ka4
122 LED_DOWN // 97, Down, k73
123 };
124
125 const uint8_t LED_LIST_WASD[] = { LED_W, LED_A, LED_S, LED_D };
126
127 const uint8_t LED_LIST_ARROWS[] = { LED_LEFT, LED_RIGHT, LED_UP, LED_DOWN };
128
129 const uint8_t LED_LIST_FUNCROW[] = { LED_ESC, LED_F1, LED_F2, LED_F3, LED_F4, LED_F5, LED_F6, LED_F7, LED_F8, LED_F9, LED_F10, LED_F11, LED_F12, LED_INS};
130
131 const uint8_t LED_LIST_NUMROW[] = { LED_GRV, LED_1, LED_2, LED_3, LED_4, LED_5, LED_6, LED_7, LED_8, LED_9, LED_0, LED_MINS, LED_EQL, LED_BSPC, LED_DEL};
132
133 const uint8_t LED_LIST_NUMPAD[] = {
134 LED_7, LED_8, LED_9,
135 LED_U, LED_I, LED_O,
136 LED_J, LED_K, LED_L,
137 LED_M, LED_COMM, LED_DOT
138 };
139
140 const uint8_t LED_SIDE_LEFT[] = { LED_L1, LED_L2, LED_L3, LED_L4, LED_L5, LED_L6, LED_L7, LED_L8};
141
142 const uint8_t LED_SIDE_RIGHT[] = { LED_R1, LED_R2, LED_R3, LED_R4, LED_R5, LED_R6, LED_R7, LED_R8};
143
144#endif