]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/mxss/templates/keymap.c
Add MxSS keyboard (#3335)
[qmk_firmware.git] / keyboards / mxss / templates / keymap.c
1 /* Copyright 2018 REPLACE_WITH_YOUR_NAME
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 #include QMK_KEYBOARD_H
17 #include "mxss_frontled.h"
18
19 // Helpful defines
20 #define _______ KC_TRNS
21
22 // Predefined colors for layers
23 // Format: {hue, saturation}
24 // {0, 0} to turn off the LED
25 // Add additional rows to handle more layers
26 hs_set layer_colors[] = {
27     [0] = {0,     0},  // Color for Layer 0
28     [1] = {86,    255},  // Color for Layer 1
29     [2] = {36,    255},  // Color for Layer 2
30     [3] = {185,   255},  // Color for Layer 3
31 };
32 const size_t lc_size = sizeof(layer_colors) / sizeof(uint16_t);
33
34 // Use NEW_SAFE_RANGE to define new custom keycodes in order to not overwrite the ones used for front LED control
35 enum custom_keycodes {
36   MY_KEYCODE = NEW_SAFE_RANGE, 
37 };
38
39
40 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41 __KEYMAP_GOES_HERE__
42 };