1 /* Copyright 2018 REPLACE_WITH_YOUR_NAME
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.
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.
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/>.
16 #include QMK_KEYBOARD_H
17 #include "mxss_frontled.h"
19 // Predefined colors for layers
20 // Format: {hue, saturation}
21 // {0, 0} to turn off the LED
22 // Add additional rows to handle more layers
23 hs_set layer_colors[] = {
24 [0] = {0, 0}, // Color for Layer 0
25 [1] = {86, 255}, // Color for Layer 1
26 [2] = {36, 255}, // Color for Layer 2
27 [3] = {185, 255}, // Color for Layer 3
29 const size_t lc_size = sizeof(layer_colors) / sizeof(uint16_t);
31 // Use NEW_SAFE_RANGE to define new custom keycodes in order to not overwrite the ones used for front LED control
32 enum custom_keycodes {
33 MY_KEYCODE = NEW_SAFE_RANGE,
37 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {