aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mxss/templates/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mxss/templates/keymap.c')
-rw-r--r--keyboards/mxss/templates/keymap.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/keyboards/mxss/templates/keymap.c b/keyboards/mxss/templates/keymap.c
index 13dbb7206..a18cff77f 100644
--- a/keyboards/mxss/templates/keymap.c
+++ b/keyboards/mxss/templates/keymap.c
@@ -14,23 +14,24 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16#include QMK_KEYBOARD_H 16#include QMK_KEYBOARD_H
17#include "mxss_frontled.h"
18 17
19// Predefined colors for layers 18hs_set caps_color = { .hue = 0, .sat = 255 };
19
20// Colors for layers
20// Format: {hue, saturation} 21// Format: {hue, saturation}
21// {0, 0} to turn off the LED 22// {0, 0} to turn off the LED
22// Add additional rows to handle more layers 23// Add additional rows to handle more layers
23hs_set layer_colors[] = { 24hs_set layer_colors[4] = {
24 [0] = {0, 0}, // Color for Layer 0 25 [0] = {.hue = 0, .sat = 0}, // Color for Layer 0
25 [1] = {86, 255}, // Color for Layer 1 26 [1] = {.hue = 86, .sat = 255}, // Color for Layer 1
26 [2] = {36, 255}, // Color for Layer 2 27 [2] = {.hue = 36, .sat = 255}, // Color for Layer 2
27 [3] = {185, 255}, // Color for Layer 3 28 [3] = {.hue = 185, .sat = 255}, // Color for Layer 3
28}; 29};
29const size_t lc_size = sizeof(layer_colors) / sizeof(uint16_t); 30size_t lc_size = sizeof(layer_colors) / sizeof(uint16_t);
30 31
31// Use NEW_SAFE_RANGE to define new custom keycodes in order to not overwrite the ones used for front LED control 32// Use NEW_SAFE_RANGE to define new custom keycodes in order to not overwrite the ones used for front LED control
32enum custom_keycodes { 33enum custom_keycodes {
33 MY_KEYCODE = NEW_SAFE_RANGE, 34 MY_KEYCODE = NEW_SAFE_RANGE,
34}; 35};
35 36
36 37