config.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. Copyright 2021 Danny Nguyen <danny@keeb.io>
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* key matrix size */
  16. // Rows are doubled-up
  17. #define MATRIX_ROWS 10
  18. #define MATRIX_COLS 6
  19. // wiring of each half
  20. #define MATRIX_ROW_PINS { B1, F0, F5, B4, D7 }
  21. #define MATRIX_COL_PINS { F1, F4, B5, C7, D4, D6 }
  22. #define MATRIX_ROW_PINS_RIGHT { B1, F0, F5, B4, B5 }
  23. #define MATRIX_COL_PINS_RIGHT { D4, D6, D7, C7, F1, F4 }
  24. #define SPLIT_HAND_PIN D5
  25. #define ENCODERS_PAD_A { B3 }
  26. #define ENCODERS_PAD_B { B2 }
  27. #define ENCODERS_PAD_A_RIGHT { B3 }
  28. #define ENCODERS_PAD_B_RIGHT { B2 }
  29. /* COL2ROW or ROW2COL */
  30. #define DIODE_DIRECTION COL2ROW
  31. /* define if matrix has ghost */
  32. //#define MATRIX_HAS_GHOST
  33. /* number of backlight levels */
  34. // #define BACKLIGHT_LEVELS 3
  35. /* Set 0 if debouncing isn't needed */
  36. #define DEBOUNCE 5
  37. /* serial.c configuration for split keyboard */
  38. #define SOFT_SERIAL_PIN D0
  39. /* ws2812 RGB LED */
  40. #define RGB_DI_PIN E6
  41. #ifdef RGB_DI_PIN
  42. # define RGBLED_NUM 68
  43. # define RGBLED_SPLIT { 34, 34 }
  44. # define RGBLIGHT_HUE_STEP 8
  45. # define RGBLIGHT_SAT_STEP 8
  46. # define RGBLIGHT_VAL_STEP 8
  47. # define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */
  48. # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  49. /*== enabled animations ==*/
  50. # define RGBLIGHT_EFFECT_BREATHING
  51. # define RGBLIGHT_EFFECT_RAINBOW_MOOD
  52. # define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  53. # define RGBLIGHT_EFFECT_SNAKE
  54. # define RGBLIGHT_EFFECT_KNIGHT
  55. # define RGBLIGHT_EFFECT_CHRISTMAS
  56. # define RGBLIGHT_EFFECT_STATIC_GRADIENT
  57. # define RGBLIGHT_EFFECT_RGB_TEST
  58. # define RGBLIGHT_EFFECT_ALTERNATING
  59. # define RGBLIGHT_EFFECT_TWINKLE
  60. # define RGBLIGHT_DEFAULT_VAL 120
  61. # define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)
  62. // RGB Matrix
  63. //# ifdef RGB_MATRIX_ENABLE
  64. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  65. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  66. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  67. # define ENABLE_RGB_MATRIX_BREATHING
  68. # define ENABLE_RGB_MATRIX_BAND_SAT
  69. # define ENABLE_RGB_MATRIX_BAND_VAL
  70. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  71. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  72. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  73. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  74. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  75. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  76. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  77. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  78. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  79. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  80. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  81. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  82. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  83. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  84. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  85. // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
  86. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  87. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  88. // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
  89. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  90. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  91. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  92. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  93. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  94. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  95. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  96. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  97. # define ENABLE_RGB_MATRIX_SPLASH
  98. # define ENABLE_RGB_MATRIX_MULTISPLASH
  99. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  100. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  101. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160
  102. # define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
  103. # define DRIVER_LED_TOTAL RGBLED_NUM
  104. # define RGB_MATRIX_SPLIT { 34, 34 }
  105. # define RGB_DISABLE_WHEN_USB_SUSPENDED
  106. # define RGB_MATRIX_KEYPRESSES
  107. //# endif
  108. #endif
  109. #define VIA_QMK_RGBLIGHT_ENABLE
  110. // Enable the workaround for the speed parameter mismatch between RGBLIGHT and
  111. // RGB Matrix, so that the speed slider in VIA behaves in a more useful way.
  112. #define VIA_CUSTOM_LIGHTING_ENABLE