config.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /**
  2. * Copyright 2021 Charly Delay <charly@codesink.dev> (@0xcharly)
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #ifndef TAPPING_TERM
  19. /**
  20. * \brief Configure the global tapping term (default: 200ms).
  21. *
  22. * If you have a lot of accidental mod activations, crank up the tapping term.
  23. *
  24. * See docs.qmk.fm/using-qmk/software-features/tap_hold#tapping-term
  25. */
  26. # define TAPPING_TERM 200
  27. #endif // TAPPING_TERM
  28. /* RGB Matrix. */
  29. #ifdef RGB_MATRIX_ENABLE
  30. // Disable control of RGB matrix by keycodes (must use firmware implementation
  31. // to control the feature).
  32. # define RGB_MATRIX_DISABLE_KEYCODES
  33. // Limit maximum brightness to keep power consumption reasonable, and avoid
  34. // disconnects.
  35. # undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
  36. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 64
  37. // Rainbow swirl as startup mode.
  38. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  39. # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT
  40. // Slow swirl at startup.
  41. # define RGB_MATRIX_STARTUP_SPD 32
  42. // Startup values.
  43. # define RGB_MATRIX_STARTUP_HUE 0
  44. # define RGB_MATRIX_STARTUP_SAT 255
  45. # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
  46. # define RGB_MATRIX_STARTUP_HSV RGB_MATRIX_STARTUP_HUE, RGB_MATRIX_STARTUP_SAT, RGB_MATRIX_STARTUP_VAL
  47. #endif // RGB_MATRIX_ENABLE