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.

99 lines
3.1 KiB

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