logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (3666B)


  1. /*
  2. Copyright 2023 3araht
  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. #define SELECT_SOFT_SERIAL_SPEED 1
  16. /*Sets the protocol speed when using serial communication*/
  17. //Speeds:
  18. //0: about 189kbps (Experimental only)
  19. //1: about 137kbps (default)
  20. //2: about 75kbps
  21. //3: about 39kbps
  22. //4: about 26kbps
  23. //5: about 20kbps
  24. // Right side has to be the master since 1, LED data is output from right side, and 2, Audio pin is prepared on right side as a reserve.
  25. #define MASTER_RIGHT
  26. // for "Generic" Promicro to be detected correctly as lefthand side (slave)
  27. #define SPLIT_USB_DETECT
  28. #define RGBLIGHT_LAYERS
  29. #ifdef RGB_MATRIX_ENABLE
  30. /* ws2812 RGB MATRIX */
  31. // for all fingers used at once.
  32. # define LED_HITS_TO_REMEMBER 10
  33. // the max brightness setting has no effect on rgb_matrix_set_color().
  34. // Use darker colors instead.
  35. /* RGB darker COLORS */
  36. # define RGB_DARKWHITE 0x66, 0x66, 0x66
  37. # define RGB_DARKRED 0x66, 0x0, 0x0
  38. # define RGB_DARKCORAL 0x66, 0x31, 0x1E
  39. # define RGB_DARKORANGE 0x66, 0x33, 0x0
  40. # define RGB_DARKGOLDENROD 0x56, 0x42, 0xD
  41. # define RGB_DARKGOLD 0x66, 0x56, 0x0
  42. # define RGB_DARKYELLOW 0x66, 0x66, 0x0
  43. # define RGB_DARKCHARTREUSE 0x33, 0x66, 0x0
  44. # define RGB_DARKGREEN 0x0, 0x66, 0x0
  45. # define RGB_DARKSPRINGGREEN 0x0, 0x66, 0x33
  46. # define RGB_DARKTURQUOISE 0x1C, 0x2C, 0x2A
  47. # define RGB_DARKTEAL 0x0, 0x33, 0x33
  48. # define RGB_DARKCYAN 0x0, 0x66, 0x66
  49. # define RGB_DARKAZURE 0x3D, 0x62, 0x66
  50. # define RGB_DARKBLUE 0x0, 0x0, 0x66
  51. # define RGB_DARKPURPLE 0x30, 0x0, 0x66
  52. # define RGB_DARKMAGENTA 0x66, 0x0, 0x66
  53. # define RGB_DARKPINK 0x66, 0x33, 0x4C
  54. #endif // RGB_MATRIX_ENABLE
  55. /*
  56. * Feature disable options
  57. * These options are also useful to firmware size reduction.
  58. */
  59. /* disable debug print */
  60. //#define NO_DEBUG
  61. /* disable print */
  62. //#define NO_PRINT
  63. /* disable action features */
  64. //#define NO_ACTION_LAYER
  65. //#define NO_ACTION_TAPPING
  66. //#define NO_ACTION_ONESHOT
  67. /* Audio */
  68. #ifdef AUDIO_ENABLE
  69. # define AUDIO_PIN B5 // use EX1 = PB5 = PIN9 as Audio output
  70. // #define DAC_SAMPLE_MAX 32768U
  71. # define DAC_SAMPLE_MAX 65535U
  72. // #define AUDIO_CLICKY
  73. # define NO_MUSIC_MODE
  74. // #define STARTUP_SONG SONG(FANTASIE_IMPROMPTU)
  75. // #define STARTUP_SONG SONG(NOCTURNE_OP_9_NO_1)
  76. // #define STARTUP_SONG SONG(USSR_ANTHEM)
  77. // #define STARTUP_SONG SONG(CAMPANELLA)
  78. #endif
  79. /*
  80. * MIDI options
  81. */
  82. /* enable basic MIDI features:
  83. - MIDI notes can be sent when in Music mode is on
  84. */
  85. //#define MIDI_BASIC
  86. /* enable advanced MIDI features:
  87. - MIDI notes can be added to the keymap
  88. - Octave shift and transpose
  89. - Virtual sustain, portamento, and modulation wheel
  90. - etc.
  91. */
  92. #ifdef MIDI_ENABLE
  93. # define MIDI_ADVANCED
  94. // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
  95. # define MIDI_INITIAL_VELOCITY 117
  96. #endif // MIDI_ENABLE
  97. /* 2021/01/22 added to shrink firmware size */
  98. // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
  99. // #define NO_ACTION_TAPPING
  100. // NO_ACTION_ONESHOT -388 bytes
  101. #define NO_ACTION_ONESHOT