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.

50 lines
1.8 KiB

  1. /* Copyright 2017 @TurboMech /u/TurboMech <discord> @A9entOran9e#6134
  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. #ifndef USERSPACE
  17. #define USERSPACE
  18. #include "quantum.h"
  19. // Definine layer names
  20. #define _QWERTY 0
  21. #define _FUNCTION 1
  22. #ifdef RGBLIGHT_ENABLE
  23. //values are HSV (Hue, Sat, Val) - except Sat and Val equal 255 for 100%.
  24. #define rgblight_set_blue rgblight_sethsv (240, 255, 255);
  25. #define rgblight_set_red rgblight_sethsv (0, 255, 255);
  26. #define rgblight_set_green rgblight_sethsv (120, 255, 255);
  27. #define rgblight_set_orange rgblight_sethsv (30, 255, 255);
  28. #define rgblight_set_teal rgblight_sethsv (195, 255, 255);
  29. #define rgblight_set_magenta rgblight_sethsv (300, 255, 255);
  30. #define rgblight_set_yellow rgblight_sethsv (60, 255, 255);
  31. #define rgblight_set_purple rgblight_sethsv (270, 255, 255);
  32. #define rgblight_set_cyan rgblight_sethsv (180, 255, 255);
  33. #define rgblight_set_white rgblight_sethsv (0, 0, 255)
  34. #endif
  35. //must use KC_RESET in order to have RESET indicate a color/mode
  36. enum userspace_custom_keycodes {
  37. EPRM = SAFE_RANGE, //should always be here
  38. KC_RESET,
  39. KC_MAKE_ALU84,
  40. KC_QMK,
  41. _FLIP,
  42. NEW_SAFE_RANGE
  43. };
  44. #endif