config.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /* Copyright 2020 Swiftrax and Basekeys.com
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. /* key matrix pins */
  18. #define MATRIX_ROW_PINS { B0, B7, F7, B1, B6, C6, C7, B5, F6, D2 }
  19. #define MATRIX_COL_PINS { F0, F1, F4, F5, D1, B2, D0, B3 }
  20. /* COL2ROW, ROW2COL*/
  21. #define DIODE_DIRECTION COL2ROW
  22. #define RGB_DI_PIN E6
  23. #define RGB_MATRIX_LED_COUNT 80
  24. /* RGB LED */
  25. #ifdef RGBLIGHT_ENABLE
  26. #define RGB_DI_PIN E6
  27. #define RGBLED_NUM 80 // Number of LEDs. backlight x69
  28. #define RGBLIGHT_HUE_STEP 10
  29. #define RGBLIGHT_SAT_STEP 17
  30. #define RGBLIGHT_VAL_STEP 17
  31. #define RGBLIGHT_EFFECT_BREATHING
  32. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  33. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  34. #define RGBLIGHT_EFFECT_SNAKE
  35. #define RGBLIGHT_EFFECT_KNIGHT
  36. #define RGBLIGHT_EFFECT_CHRISTMAS
  37. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  38. #define RGBLIGHT_EFFECT_RGB_TEST
  39. #define RGBLIGHT_EFFECT_ALTERNATING
  40. #define RGBLIGHT_EFFECT_TWINKLE
  41. #endif
  42. /* Limits the brightness of the LEDS range of 255-0 (255 is default)*/
  43. #define RGBLIGHT_LIMIT_VAL 128
  44. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  45. #define LOCKING_SUPPORT_ENABLE
  46. /* Locking resynchronize hack */
  47. #define LOCKING_RESYNC_ENABLE
  48. /* EEPROM for via */
  49. #define DYNAMIC_KEYMAP_LAYER_COUNT 3
  50. #ifdef RGB_MATRIX_ENABLE
  51. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  52. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  53. //# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  54. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  55. # 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)
  56. # 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)
  57. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  58. # define RGB_MATRIX_HUE_STEP 8
  59. # define RGB_MATRIX_SAT_STEP 8
  60. # define RGB_MATRIX_VAL_STEP 8
  61. # define RGB_MATRIX_SPD_STEP 10
  62. /* Disable the animations you don't want/need. You will need to disable a good number of these *
  63. * because they take up a lot of space. Disable until you can successfully compile your firmware. */
  64. // RGB Matrix Animation modes. Explicitly enabled
  65. // For full list of effects, see:
  66. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  67. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  68. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  69. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  70. # define ENABLE_RGB_MATRIX_BREATHING
  71. # define ENABLE_RGB_MATRIX_BAND_SAT
  72. # define ENABLE_RGB_MATRIX_BAND_VAL
  73. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  74. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  75. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  76. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  77. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  78. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  79. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  80. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  81. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  82. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  83. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  84. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  85. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  86. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  87. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  88. # define ENABLE_RGB_MATRIX_RAINDROPS
  89. # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  90. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  91. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  92. # define ENABLE_RGB_MATRIX_HUE_WAVE
  93. # define ENABLE_RGB_MATRIX_PIXEL_RAIN
  94. # define ENABLE_RGB_MATRIX_PIXEL_FLOW
  95. # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  96. // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
  97. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  98. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  99. // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
  100. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  101. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  102. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  103. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  104. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  105. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  106. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  107. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  108. # define ENABLE_RGB_MATRIX_SPLASH
  109. # define ENABLE_RGB_MATRIX_MULTISPLASH
  110. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  111. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  112. #endif