config.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*
  2. Copyright 2019 SwanMatch
  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. /*
  16. * Keyboard Matrix Assignments
  17. *
  18. * Change this to how you wired your keyboard
  19. * COLS: AVR pins used for columns, left to right
  20. * ROWS: AVR pins used for rows, top to bottom
  21. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  22. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  23. *
  24. */
  25. #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
  26. #define MATRIX_COL_PINS { B3, B1, F7, F6, F5, F4 }
  27. /* COL2ROW, ROW2COL*/
  28. #define DIODE_DIRECTION COL2ROW
  29. #define MASTER_RIGHT
  30. #define RGB_DI_PIN D3
  31. #ifdef RGB_DI_PIN
  32. //#define RGBLIGHT_SPLIT
  33. #define RGBLED_SPLIT {26, 26}
  34. #define RGBLED_NUM 52
  35. #ifdef RGB_MATRIX_ENABLE
  36. #define RGB_MATRIX_LED_COUNT 52
  37. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
  38. #define RGB_MATRIX_HUE_STEP 8
  39. #define RGB_MATRIX_SAT_STEP 8
  40. #define RGB_MATRIX_VAL_STEP 8
  41. #define RGB_MATRIX_SPD_STEP 8
  42. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  43. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  44. #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_TYPING_HEATMAP
  45. #else
  46. #define RGBLIGHT_LED_MAP { 0,1,2,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,3,4,5,6, \
  47. 26,27,28,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,29,30,31,32 }
  48. #define RGBLIGHT_HUE_STEP 8
  49. #define RGBLIGHT_SAT_STEP 8
  50. #define RGBLIGHT_VAL_STEP 8
  51. #define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */
  52. //#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  53. #define RGBLIGHT_EFFECT_BREATHING
  54. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  55. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  56. #define RGBLIGHT_EFFECT_SNAKE
  57. // #define RGBLIGHT_EFFECT_KNIGHT
  58. // #define RGBLIGHT_EFFECT_CHRISTMAS
  59. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  60. // #define RGBLIGHT_EFFECT_RGB_TEST
  61. // #define RGBLIGHT_EFFECT_ALTERNATING
  62. /*== customize breathing effect ==*/
  63. /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
  64. #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
  65. /*==== use exp() and sin() ====*/
  66. #define RGBLIGHT_EFFECT_BREATHE_CENTER 2 // 1 to 2.7
  67. #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  68. /*== customize snake effect ==*/
  69. #define RGBLIGHT_EFFECT_SNAKE_LENGTH RGBLED_NUM
  70. /*== customize knight effect ==*/
  71. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 6
  72. #endif
  73. #endif
  74. /* Audio */
  75. #ifdef AUDIO_ENABLE
  76. #define AUDIO_PIN B6
  77. #define STARTUP_SONG SONG(STARTUP_SOUND)
  78. #define AUDIO_CLICKY
  79. #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.0f
  80. #endif
  81. //#define RETRO_TAPPING
  82. #ifdef MOUSEKEY_ENABLE
  83. #define MOUSEKEY_INTERVAL 20
  84. #define MOUSEKEY_MAX_SPEED 5
  85. #define MOUSEKEY_TIME_TO_MAX 60
  86. #endif
  87. /*
  88. * Feature disable options
  89. * These options are also useful to firmware size reduction.
  90. */
  91. /* disable debug print */
  92. //#define NO_DEBUG
  93. /* disable print */
  94. //#define NO_PRINT
  95. /* disable action features */
  96. //#define NO_ACTION_LAYER
  97. //#define NO_ACTION_TAPPING
  98. //#define NO_ACTION_ONESHOT