keymap.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. // Helpful defines
  19. #define _______ KC_TRNS
  20. // Predefined colors for layers
  21. // Format: {hue, saturation}
  22. // {0, 0} to turn off the LED
  23. // Add additional rows to handle more layers
  24. hs_set layer_colors[] = {
  25. [0] = {0, 0}, // Color for Layer 0
  26. [1] = {86, 255}, // Color for Layer 1
  27. [2] = {36, 255}, // Color for Layer 2
  28. [3] = {185, 255}, // Color for Layer 3
  29. };
  30. 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,
  34. };
  35. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  36. __KEYMAP_GOES_HERE__
  37. };