config.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Copyright 2020 Brandon Schlack
  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. #define TAPPING_TOGGLE 2
  18. #define TAPPING_TERM 200
  19. #define PERMISSIVE_HOLD
  20. #define TAP_HOLD_CAPS_DELAY 200
  21. #ifdef RGBLIGHT_ENABLE
  22. # define RGBLIGHT_SLEEP
  23. #endif
  24. #if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) && !defined(RGBLIGHT_LAYERS)
  25. # define RGB_THEME_ENABLE
  26. #endif
  27. #ifdef RGB_THEME_ENABLE
  28. # define DISABLE_RGB_THEME_JAMON
  29. # define DISABLE_RGB_THEME_OBLIQUE
  30. #endif
  31. #ifdef ENCODER_ENABLE
  32. # define TAP_CODE_DELAY 10
  33. #else
  34. # define TAP_CODE_DELAY 5
  35. #endif
  36. /* Disable unused and unneeded features to reduce on firmware size */
  37. #ifndef NO_ACTION_MACRO
  38. # define NO_ACTION_MACRO
  39. #endif
  40. #ifndef NO_ACTION_FUNCTION
  41. # define NO_ACTION_FUNCTION
  42. #endif
  43. #ifdef LOCKING_SUPPORT_ENABLE
  44. # undef LOCKING_SUPPORT_ENABLE
  45. #endif
  46. #ifdef LOCKING_RESYNC_ENABLE
  47. # undef LOCKING_RESYNC_ENABLE
  48. #endif