config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright 2019 Josh Johnson
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  16. // /*== all animations enable ==*/
  17. // #define RGBLIGHT_ANIMATIONS
  18. // /*== or choose animations ==*/
  19. // #define RGBLIGHT_EFFECT_BREATHING
  20. // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  21. // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  22. // #define RGBLIGHT_EFFECT_SNAKE
  23. // #define RGBLIGHT_EFFECT_KNIGHT
  24. // #define RGBLIGHT_EFFECT_CHRISTMAS
  25. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  26. // #define RGBLIGHT_EFFECT_RGB_TEST
  27. // #define RGBLIGHT_EFFECT_ALTERNATING
  28. // /*== customize breathing effect ==*/
  29. // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
  30. // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
  31. // /*==== use exp() and sin() ====*/
  32. // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
  33. // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  34. // #endif
  35. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  36. #define DEBOUNCE 20
  37. // Time out one shot layers after 3 seconds
  38. #define ONESHOT_TIMEOUT 3000
  39. // Undef and redefine default brightness to half of 255
  40. #undef RGBLIGHT_LIMIT_VAL
  41. #define RGBLIGHT_LIMIT_VAL 255
  42. //Define a preview timeout for RGB reviews
  43. #define PREVIEW_TIMEOUT 5000
  44. // Enable Light Layers implementation
  45. #define RGBLIGHT_LAYERS
  46. // Allow Light Layers to override RGB off configuration
  47. #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF