config.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /*
  2. Copyright 2020 marksard
  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. #include "config_common.h"
  16. /* key matrix size */
  17. #define MATRIX_ROWS 8
  18. #define MATRIX_COLS 5
  19. /*
  20. * Keyboard Matrix Assignments
  21. *
  22. * Change this to how you wired your keyboard
  23. * COLS: AVR pins used for columns, left to right
  24. * ROWS: AVR pins used for rows, top to bottom
  25. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  26. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  27. *
  28. */
  29. #define MATRIX_ROW_PINS { F4, F5, F6, F7 }
  30. #define MATRIX_COL_PINS { D4, C6, D7, E6, B4 }
  31. /* COL2ROW, ROW2COL*/
  32. #define DIODE_DIRECTION COL2ROW
  33. /*
  34. * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
  35. */
  36. #define SOFT_SERIAL_PIN D2 // or D1, D2, D3, E6
  37. // #define BACKLIGHT_PIN B7
  38. // #define BACKLIGHT_BREATHING
  39. // #define BACKLIGHT_LEVELS 3
  40. #define RGB_DI_PIN D3
  41. #ifdef RGBLIGHT_ENABLE
  42. // #ifdef RGB_DI_PIN
  43. #define RGBLED_NUM 40
  44. #define RGBLED_SPLIT {20, 20}
  45. #define RGBLIGHT_HUE_STEP 8
  46. #define RGBLIGHT_SAT_STEP 8
  47. #define RGBLIGHT_VAL_STEP 8
  48. #define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */
  49. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  50. /*== all animations enable ==*/
  51. // #define RGBLIGHT_ANIMATIONS
  52. /*== or choose animations ==*/
  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 1.85 // 1 to 2.7
  67. #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
  68. #endif
  69. #ifdef RGB_MATRIX_ENABLE
  70. #define RGBLED_NUM 40 // Number of LEDs
  71. #define RGB_MATRIX_LED_COUNT RGBLED_NUM
  72. #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  73. // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  74. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  75. // #define RGB_MATRIX_LED_PROCESS_LIMIT (RGB_MATRIX_LED_COUNT + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  76. // #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
  77. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
  78. #define RGB_MATRIX_HUE_STEP 8
  79. #define RGB_MATRIX_SAT_STEP 8
  80. #define RGB_MATRIX_VAL_STEP 8
  81. #define RGB_MATRIX_SPD_STEP 10
  82. // #undef ENABLE_RGB_MATRIX_ALPHAS_MODS
  83. // #undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  84. // #undef ENABLE_RGB_MATRIX_BREATHING
  85. // #undef ENABLE_RGB_MATRIX_BAND_SAT
  86. // #undef ENABLE_RGB_MATRIX_BAND_VAL
  87. // #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  88. // #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  89. // #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  90. // #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  91. // #undef ENABLE_RGB_MATRIX_CYCLE_ALL
  92. // #undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  93. // #undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  94. // #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  95. // #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  96. // #undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  97. // #undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  98. // #undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  99. // #undef ENABLE_RGB_MATRIX_DUAL_BEACON
  100. // #undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
  101. // #undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  102. // #undef ENABLE_RGB_MATRIX_RAINDROPS
  103. // #undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  104. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  105. // #undef ENABLE_RGB_MATRIX_TYPING_HEATMAP
  106. // #undef ENABLE_RGB_MATRIX_DIGITAL_RAIN
  107. // #define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  108. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  109. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
  110. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  111. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  112. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  113. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  114. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  115. // #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  116. // #undef ENABLE_RGB_MATRIX_SPLASH
  117. // #undef ENABLE_RGB_MATRIX_MULTISPLASH
  118. // #undef ENABLE_RGB_MATRIX_SOLID_SPLASH
  119. // #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  120. # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_TYPING_HEATMAP
  121. #endif
  122. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  123. #define DEBOUNCE 5