config.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* Copyright 2021 SethBarberee <seth.barberee@gmail.com>
  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. #pragma once
  17. #ifdef RGBLIGHT_ENABLE
  18. # define RGBLIGHT_SLEEP
  19. # ifndef RGBLIGHT_HUE_STEP
  20. # define RGBLIGHT_HUE_STEP 8
  21. # endif
  22. # ifndef RGBLIGHT_SAT_STEPT
  23. # define RGBLIGHT_SAT_STEP 8
  24. # endif
  25. # ifndef RGBLIGHT_VAL_STEP
  26. # define RGBLIGHT_VAL_STEP 8
  27. # endif
  28. // Trim animations I don't use/like
  29. # ifdef RGBLIGHT_ANIMATIONS
  30. # undef RGBLIGHT_ANIMATIONS
  31. # endif
  32. # ifndef RGBLIGHT_EFFECT_BREATHING
  33. # define RGBLIGHT_EFFECT_BREATHING
  34. # endif
  35. # ifndef RGBLIGHT_EFFECT_STATIC_GRADIENT
  36. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  37. # endif
  38. # ifndef RGBLIGHT_EFFECT_TWINKLE
  39. # define RGBLIGHT_EFFECT_TWINKLE
  40. # endif
  41. # ifdef RGBLIGHT_DEFAULT_MODE
  42. # undef RGBLIGHT_DEFAULT_MODE
  43. # define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_TWINKLE
  44. # endif
  45. # ifndef CAPS_LOCK_MODE
  46. # define CAPS_LOCK_MODE RGBLIGHT_MODE_STATIC_LIGHT
  47. # endif
  48. #endif // RGBLIGHT_ENABLE
  49. #ifndef AUDIO_ENABLE
  50. # define NO_MUSIC_MODE
  51. #endif // AUDIO_ENABLE
  52. #define FORCE_NKRO // Force NKRO on by default
  53. // Totally taken from @drashna's userspace
  54. #ifdef TAPPING_TERM
  55. # undef TAPPING_TERM
  56. #endif // TAPPING_TERM
  57. //
  58. // Keeping these commented for examples when I want to tweak per keyboard
  59. // but setting a default across my boards for now
  60. //
  61. //#if defined(KEYBOARD_ergodox_ez)
  62. //# define TAPPING_TERM 185
  63. #if defined(KEYBOARD_crkbd)
  64. # define TAPPING_TERM 185
  65. #else
  66. # define TAPPING_TERM 200
  67. #endif
  68. #if !defined(LAYER_STATE_16BIT) && !defined(LAYER_STATE_8BIT) && !defined(LAYER_STATE_32BIT)
  69. # define LAYER_STATE_8BIT
  70. #endif
  71. /* Disable unused and unneeded features to reduce on firmware size */
  72. #ifdef LOCKING_SUPPORT_ENABLE
  73. # undef LOCKING_SUPPORT_ENABLE
  74. #endif
  75. #ifdef LOCKING_RESYNC_ENABLE
  76. # undef LOCKING_RESYNC_ENABLE
  77. #endif