You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
5.0 KiB

  1. /* Copyright 2021 3araht
  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 MASTER_RIGHT
  18. #ifndef MASTER_RIGHT
  19. // SPLIT_HAND_MATRIX_GRID was initially designed to use with left hand side diode D35 mounted and not pressing K7 on the right hand side during boot. However when a USB cable is reconnected immediately, it fails. Decided to use "MASTER_RIGHT" to make it more reliable.
  20. # define SPLIT_HAND_MATRIX_GRID B5, D0
  21. # define SPLIT_HAND_MATRIX_GRID_LOW_IS_LEFT
  22. #endif
  23. #define SPLIT_USB_DETECT
  24. #ifdef RGB_MATRIX_ENABLE
  25. // for all fingers used at once.
  26. # define LED_HITS_TO_REMEMBER 10
  27. // the max brightness setting has no effect on rgb_matrix_set_color().
  28. // Use darker colors instead.
  29. /* RGB darker COLORS */
  30. # define RGB_DARKWHITE 0x33, 0x33, 0x33
  31. # define RGB_DARKRED 0x33, 0x0, 0x0
  32. # define RGB_DARKCORAL 0x33, 0x18, 0xF
  33. # define RGB_DARKORANGE 0x33, 0x19, 0x0
  34. # define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
  35. # define RGB_DARKGOLD 0x33, 0x2B, 0x0
  36. # define RGB_DARKYELLOW 0x33, 0x33, 0x0
  37. # define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
  38. # define RGB_DARKGREEN 0x0, 0x33, 0x0
  39. # define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
  40. # define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
  41. # define RGB_DARKTEAL 0x0, 0x19, 0x19
  42. # define RGB_DARKCYAN 0x0, 0x33, 0x33
  43. # define RGB_DARKAZURE 0x1E, 0x31, 0x33
  44. # define RGB_DARKBLUE 0x0, 0x0, 0x33
  45. # define RGB_DARKPURPLE 0x18, 0x0, 0x33
  46. # define RGB_DARKMAGENTA 0x33, 0x0, 0x33
  47. # define RGB_DARKPINK 0x33, 0x19, 0x26
  48. // https://docs.qmk.fm/#/feature_rgb_matrix
  49. # ifdef CONSOLE_ENABLE
  50. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  51. # else
  52. // #define ENABLE_RGB_MATRIX_ALPHAS_MODS
  53. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  54. # define ENABLE_RGB_MATRIX_BREATHING
  55. # define ENABLE_RGB_MATRIX_BAND_SAT
  56. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  57. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  58. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  59. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  60. // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  61. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  62. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  63. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  64. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  65. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  66. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  67. # define ENABLE_RGB_MATRIX_SPLASH
  68. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  69. // RAINDROPS don't match well with layer LED indicator (oc) using rgb_matrix_set_color().
  70. // #define ENABLE_RGB_MATRIX_RAINDROPS
  71. // #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  72. // Recommended not to use these.
  73. # ifndef VIA_ENABLE
  74. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  75. # define ENABLE_RGB_MATRIX_BAND_VAL
  76. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  77. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  78. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  79. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  80. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  81. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  82. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  83. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  84. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  85. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  86. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  87. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  88. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  89. # define ENABLE_RGB_MATRIX_HUE_WAVE
  90. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  91. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  92. # define ENABLE_RGB_MATRIX_MULTISPLASH
  93. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  94. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  95. # endif
  96. # endif // CONSOLE_ENABLE
  97. #endif // RGB_MATRIX_ENABLE
  98. /*
  99. * Feature disable options
  100. * These options are also useful to firmware size reduction.
  101. */
  102. /* disable debug print */
  103. //#define NO_DEBUG
  104. /* disable print */
  105. //#define NO_PRINT
  106. /* disable action features */
  107. //#define NO_ACTION_LAYER
  108. /* 2021/01/22 added to shrink firmware size */
  109. // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
  110. // #define NO_ACTION_TAPPING
  111. // NO_ACTION_ONESHOT -388 bytes
  112. #define NO_ACTION_ONESHOT
  113. #ifdef MIDI_ENABLE
  114. # define MIDI_ADVANCED
  115. // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
  116. # define MIDI_INITIAL_VELOCITY 117
  117. #endif // MIDI_ENABLE