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.

143 lines
5.3 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. #endif
  22. #define SPLIT_USB_DETECT
  23. #define RGB_DI_PIN D3
  24. #ifdef RGB_MATRIX_ENABLE
  25. /* ws2812 RGB MATRIX */
  26. # define RGB_MATRIX_LED_COUNT 76
  27. // reacts to keypresses
  28. # define RGB_MATRIX_KEYPRESSES
  29. // for all fingers used at once.
  30. # define LED_HITS_TO_REMEMBER 10
  31. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 50
  32. # define RGB_MATRIX_DEFAULT_SPD 127
  33. // the above brighness setting has no effect on rgb_matrix_set_color().
  34. // Use darker colors instead.
  35. /* RGB darker COLORS */
  36. # define RGB_DARKWHITE 0x33, 0x33, 0x33
  37. # define RGB_DARKRED 0x33, 0x0, 0x0
  38. # define RGB_DARKCORAL 0x33, 0x18, 0xF
  39. # define RGB_DARKORANGE 0x33, 0x19, 0x0
  40. # define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
  41. # define RGB_DARKGOLD 0x33, 0x2B, 0x0
  42. # define RGB_DARKYELLOW 0x33, 0x33, 0x0
  43. # define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
  44. # define RGB_DARKGREEN 0x0, 0x33, 0x0
  45. # define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
  46. # define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
  47. # define RGB_DARKTEAL 0x0, 0x19, 0x19
  48. # define RGB_DARKCYAN 0x0, 0x33, 0x33
  49. # define RGB_DARKAZURE 0x1E, 0x31, 0x33
  50. # define RGB_DARKBLUE 0x0, 0x0, 0x33
  51. # define RGB_DARKPURPLE 0x18, 0x0, 0x33
  52. # define RGB_DARKMAGENTA 0x33, 0x0, 0x33
  53. # define RGB_DARKPINK 0x33, 0x19, 0x26
  54. // https://docs.qmk.fm/#/feature_rgb_matrix
  55. // Enable suspend mode.
  56. # define RGB_DISABLE_WHEN_USB_SUSPENDED true
  57. # ifdef CONSOLE_ENABLE
  58. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  59. # else
  60. // #define ENABLE_RGB_MATRIX_ALPHAS_MODS
  61. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  62. # define ENABLE_RGB_MATRIX_BREATHING
  63. # define ENABLE_RGB_MATRIX_BAND_SAT
  64. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  65. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  66. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  67. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  68. // #define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  69. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  70. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  71. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  72. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  73. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  74. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  75. # define ENABLE_RGB_MATRIX_SPLASH
  76. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  77. // RAINDROPS don't match well with layer LED indicator (oc) using rgb_matrix_set_color().
  78. // #define ENABLE_RGB_MATRIX_RAINDROPS
  79. // #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  80. // Recommendend not to use these.
  81. # ifndef VIA_ENABLE
  82. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  83. # define ENABLE_RGB_MATRIX_BAND_VAL
  84. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  85. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  86. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  87. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  88. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  89. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  90. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  91. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  92. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  93. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  94. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  95. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  96. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  97. # define ENABLE_RGB_MATRIX_HUE_WAVE
  98. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  99. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  100. # define ENABLE_RGB_MATRIX_MULTISPLASH
  101. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  102. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  103. # endif
  104. # endif // CONSOLE_ENABLE
  105. #endif // RGB_MATRIX_ENABLE
  106. /*
  107. * Feature disable options
  108. * These options are also useful to firmware size reduction.
  109. */
  110. /* disable debug print */
  111. //#define NO_DEBUG
  112. /* disable print */
  113. //#define NO_PRINT
  114. /* disable action features */
  115. //#define NO_ACTION_LAYER
  116. /* 2021/01/22 added to shrink firmware size */
  117. // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
  118. // #define NO_ACTION_TAPPING
  119. // NO_ACTION_ONESHOT -388 bytes
  120. #define NO_ACTION_ONESHOT
  121. #ifdef MIDI_ENABLE
  122. # define MIDI_ADVANCED
  123. // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
  124. # define MIDI_INITIAL_VELOCITY 117
  125. #endif // MIDI_ENABLE
  126. #define TAP_CODE_DELAY 10