You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB

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