logo

qmk_firmware

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

config.h (2912B)


  1. /*
  2. Copyright 2021 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. #ifdef RGB_MATRIX_ENABLE
  16. // for all fingers used at once.
  17. # define LED_HITS_TO_REMEMBER 10
  18. // the max brightness setting has no effect on rgb_matrix_set_color().
  19. // Use darker colors instead.
  20. /* RGB darker COLORS */
  21. # define RGB_DARKWHITE 0x33, 0x33, 0x33
  22. # define RGB_DARKRED 0x33, 0x0, 0x0
  23. # define RGB_DARKCORAL 0x33, 0x18, 0xF
  24. # define RGB_DARKORANGE 0x33, 0x19, 0x0
  25. # define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
  26. # define RGB_DARKGOLD 0x33, 0x2B, 0x0
  27. # define RGB_DARKYELLOW 0x33, 0x33, 0x0
  28. # define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
  29. # define RGB_DARKGREEN 0x0, 0x33, 0x0
  30. # define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
  31. # define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
  32. # define RGB_DARKTEAL 0x0, 0x19, 0x19
  33. # define RGB_DARKCYAN 0x0, 0x33, 0x33
  34. # define RGB_DARKAZURE 0x1E, 0x31, 0x33
  35. # define RGB_DARKBLUE 0x0, 0x0, 0x33
  36. # define RGB_DARKPURPLE 0x18, 0x0, 0x33
  37. # define RGB_DARKMAGENTA 0x33, 0x0, 0x33
  38. # define RGB_DARKPINK 0x33, 0x19, 0x26
  39. #endif // RGB_MATRIX_ENABLE
  40. /* Audio */
  41. #ifdef AUDIO_ENABLE
  42. # define AUDIO_PIN B6 // use PB6 = PIN10 as Audio output
  43. // #define DAC_SAMPLE_MAX 32768U
  44. # define DAC_SAMPLE_MAX 65535U
  45. // #define AUDIO_CLICKY
  46. # define NO_MUSIC_MODE
  47. // #define STARTUP_SONG SONG(FANTASIE_IMPROMPTU)
  48. // #define STARTUP_SONG SONG(NOCTURNE_OP_9_NO_1)
  49. // #define STARTUP_SONG SONG(USSR_ANTHEM)
  50. // #define STARTUP_SONG SONG(CAMPANELLA)
  51. #endif // AUDIO_ENABLE
  52. /*
  53. * MIDI options
  54. */
  55. /* enable basic MIDI features:
  56. - MIDI notes can be sent when in Music mode is on
  57. */
  58. //#define MIDI_BASIC
  59. /* enable advanced MIDI features:
  60. - MIDI notes can be added to the keymap
  61. - Octave shift and transpose
  62. - Virtual sustain, portamento, and modulation wheel
  63. - etc.
  64. */
  65. #ifdef MIDI_ENABLE
  66. # define MIDI_ADVANCED
  67. // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
  68. # define MIDI_INITIAL_VELOCITY 117
  69. #endif // MIDI_ENABLE
  70. /* disable action features */
  71. //#define NO_ACTION_LAYER
  72. //#define NO_ACTION_TAPPING
  73. /* 2021/01/22 added to shrink firmware size */
  74. // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
  75. // #define NO_ACTION_TAPPING
  76. // NO_ACTION_ONESHOT -388 bytes
  77. #define NO_ACTION_ONESHOT