config.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Copyright 2022 Vino Rodrigues (@vinorodrigues)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "config_common.h"
  5. /* NB: Most configuration information resides in `info.json` */
  6. /* ----------------
  7. * RGB Matrix stuff
  8. * ---------------- */
  9. #define RGB_DI_PIN B7
  10. // RGB Matrix config
  11. #if defined(RGB_DI_PIN) && defined(RGB_MATRIX_ENABLE)
  12. /* Denwir case is solid back. Please disable underglow at compile with compile command line:
  13. *
  14. * `make idobao/id63:default UNDERGLOW=off`
  15. *
  16. * */
  17. #ifndef ID63_DISABLE_UNDERGLOW
  18. #define DRIVER_LED_TOTAL 75
  19. #else
  20. #define DRIVER_LED_TOTAL (75 - 12)
  21. #endif
  22. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  23. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 // limits maximum brightness of LEDs to x out of 255. If not defined maximum brightness is set to 255
  24. #define RGB_MATRIX_KEYPRESSES
  25. // do not enable RGB_MATRIX_FRAMEBUFFER_EFFECTS as these effects don't work will with this LED placement
  26. // changes to this list will break the sequence set in the VIA `json` file.
  27. /* Standard animation set */
  28. #define ENABLE_RGB_MATRIX_SOLID_COLOR // Static single color
  29. #define ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
  30. #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
  31. #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
  32. #define ENABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
  33. #define ENABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
  34. #define ENABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
  35. #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
  36. #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
  37. #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
  38. #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
  39. #define ENABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
  40. #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
  41. #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
  42. #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
  43. #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
  44. #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradient Chevron shaped scrolling left to right
  45. #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
  46. #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
  47. #define ENABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
  48. #define ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
  49. #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
  50. #define ENABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
  51. #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
  52. #define ENABLE_RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight amount at the same time, then shifts back
  53. #define ENABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight amount in a wave to the right, then back to the left
  54. #define ENABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight amount and then back down in a wave to the right
  55. // #define ENABLE_RGB_MATRIX_PIXEL_FRACTAL // ** do not enable
  56. // #define ENABLE_RGB_MATRIX_PIXEL_FLOW // ** do not enable
  57. // #define ENABLE_RGB_MATRIX_PIXEL_RAIN // ** do not enable
  58. /* RGB_MATRIX_FRAMEBUFFER_EFFECTS */
  59. // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP // ** do not enable
  60. // #define ENABLE_RGB_MATRIX_DIGITAL_RAIN // ** do not enable
  61. /* RGB_MATRIX_KEYPRESSES */
  62. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit to hue & value then fades value out
  63. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
  64. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
  65. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
  66. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
  67. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
  68. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
  69. #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
  70. #define ENABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
  71. #define ENABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
  72. #define ENABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
  73. #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
  74. #endif // RGB_MATRIX_ENABLE
  75. /* -----------------------
  76. * Feature disable options
  77. * These options are also useful to firmware size reduction.
  78. * ----------------------- */
  79. /* disable debug print */
  80. // #define NO_DEBUG
  81. /* disable print */
  82. // #define NO_PRINT
  83. /* disable action features */
  84. // #define NO_ACTION_LAYER
  85. // #define NO_ACTION_TAPPING
  86. // #define NO_ACTION_ONESHOT