config.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /* Copyright 2020 Jonathan Rascher
  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. /* Enable NKRO by default. All my devices support this, and it enables me to
  17. * dispense with the NK_TOGG key, thus saving firmware space by not compiling
  18. * magic keycode support.
  19. */
  20. #define FORCE_NKRO
  21. /* Wait between tap_code register and unregister to fix flaky media keys. */
  22. #undef TAP_CODE_DELAY
  23. #define TAP_CODE_DELAY 20
  24. /* Treat mod-tap keys as holds even if the mod-tap key and the key being
  25. * modified are both released within TAPPING_TERM. This assumes the mod-tap key
  26. * isn't usually pressed in quick succession with other tapped keys, which is
  27. * good when the tap keycode is something like KC_ESC rather than a letter.
  28. */
  29. #define PERMISSIVE_HOLD
  30. /* Turn off key repeat support of the tap keycode for tap-hold keys, enabling
  31. * holds to work correctly in quick succession after taps.
  32. */
  33. #define TAPPING_FORCE_HOLD
  34. #if defined(OLED_ENABLE)
  35. /* The built-in OLED timeout wakes the OLED screen every time the buffer is
  36. * updated, even if no user activity has occurred recently. This prevents the
  37. * OLED from ever turning off during a continuously running animation. To avoid
  38. * this, we disable the default timeout and implement our own in
  39. * oled_task_user.
  40. */
  41. # undef OLED_TIMEOUT
  42. # define OLED_DISABLE_TIMEOUT
  43. # if defined(SPLIT_KEYBOARD)
  44. /* Sync OLED on/off state between halves of split keyboards. */
  45. # define SPLIT_OLED_ENABLE
  46. # endif
  47. #endif
  48. #if defined(RGB_MATRIX_ENABLE)
  49. /* Turn off per-key RGB when the host goes to sleep. */
  50. # define RGB_DISABLE_WHEN_USB_SUSPENDED
  51. /* Keep per-key RGB increments consistent across keyboards. */
  52. # undef RGB_MATRIX_HUE_STEP
  53. # undef RGB_MATRIX_SAT_STEP
  54. # undef RGB_MATRIX_VAL_STEP
  55. # undef RGB_MATRIX_SPD_STEP
  56. # define RGB_MATRIX_HUE_STEP 8
  57. # define RGB_MATRIX_SAT_STEP 17
  58. # define RGB_MATRIX_VAL_STEP 17
  59. # define RGB_MATRIX_SPD_STEP 17
  60. /* Enable specific per-key animation modes. */
  61. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  62. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  63. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  64. # define ENABLE_RGB_MATRIX_BAND_SAT
  65. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  66. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  67. # define ENABLE_RGB_MATRIX_BAND_VAL
  68. # define ENABLE_RGB_MATRIX_BREATHING
  69. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  70. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  71. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  72. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  73. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  74. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  75. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  76. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  77. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  78. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  79. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  80. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  81. # define ENABLE_RGB_MATRIX_HUE_WAVE
  82. # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  83. # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  84. # define ENABLE_RGB_MATRIX_PIXEL_RAIN
  85. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  86. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  87. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  88. # define ENABLE_RGB_MATRIX_RAINDROPS
  89. /* Enable additional per-key animation modes that require a copy of the
  90. * framebuffer (with accompanying storage cost).
  91. */
  92. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  93. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  94. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  95. #endif
  96. #if defined(RGBLIGHT_ENABLE)
  97. /* Turn off RGB underglow when the host goes to sleep. */
  98. # define RGBLIGHT_SLEEP
  99. /* Keep RGB underglow level increments consistent across keyboards. */
  100. # undef RGBLIGHT_HUE_STEP
  101. # undef RGBLIGHT_SAT_STEP
  102. # undef RGBLIGHT_VAL_STEP
  103. # define RGBLIGHT_HUE_STEP 8
  104. # define RGBLIGHT_SAT_STEP 17
  105. # define RGBLIGHT_VAL_STEP 17
  106. /* Enable specific underglow animation modes. (Skip TWINKLE because it seems to
  107. * be broken on ARM: https://github.com/qmk/qmk_firmware/issues/15345.)
  108. */
  109. # define RGBLIGHT_EFFECT_ALTERNATING
  110. # define RGBLIGHT_EFFECT_BREATHING
  111. # define RGBLIGHT_EFFECT_CHRISTMAS
  112. # define RGBLIGHT_EFFECT_KNIGHT
  113. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  114. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  115. # define RGBLIGHT_EFFECT_RGB_TEST
  116. # define RGBLIGHT_EFFECT_SNAKE
  117. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  118. #endif
  119. #if defined(BACKLIGHT_ENABLE)
  120. /* Enable backlight breathing across the board. */
  121. # define BACKLIGHT_BREATHING
  122. /* Keep backlight level increments consistent across keyboards. */
  123. # undef BACKLIGHT_LEVELS
  124. # define BACKLIGHT_LEVELS 7
  125. #endif
  126. /* Turn off unused config options to reduce firmware size. */
  127. #define LAYER_STATE_8BIT
  128. #define NO_ACTION_ONESHOT
  129. #undef LOCKING_RESYNC_ENABLE
  130. #undef LOCKING_SUPPORT_ENABLE