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.

145 lines
5.6 KiB

  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. #include "config_common.h"
  18. /* key matrix size */
  19. #define MATRIX_ROWS 10
  20. #define MATRIX_COLS 8
  21. /* key matrix pins */
  22. #define MATRIX_ROW_PINS { B0, B7, F7, B1, B6, C6, C7, B5, F6, D2 }
  23. #define MATRIX_COL_PINS { F0, F1, F4, F5, D1, B2, D0, B3 }
  24. #define ENCODERS_PAD_A { D4, D6, D7 }
  25. #define ENCODERS_PAD_B { B4, D3, D5 }
  26. /* COL2ROW, ROW2COL*/
  27. #define DIODE_DIRECTION COL2ROW
  28. #define RGB_DI_PIN E6
  29. #define RGB_MATRIX_LED_COUNT 80
  30. /* RGB LED */
  31. #ifdef RGBLIGHT_ENABLE
  32. #define RGB_DI_PIN E6
  33. #define RGBLED_NUM 80 // Number of LEDs. backlight x69
  34. #define RGBLIGHT_HUE_STEP 10
  35. #define RGBLIGHT_SAT_STEP 17
  36. #define RGBLIGHT_VAL_STEP 17
  37. #define RGBLIGHT_EFFECT_BREATHING
  38. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  39. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  40. #define RGBLIGHT_EFFECT_SNAKE
  41. #define RGBLIGHT_EFFECT_KNIGHT
  42. #define RGBLIGHT_EFFECT_CHRISTMAS
  43. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  44. #define RGBLIGHT_EFFECT_RGB_TEST
  45. #define RGBLIGHT_EFFECT_ALTERNATING
  46. #define RGBLIGHT_EFFECT_TWINKLE
  47. #endif
  48. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  49. #define DEBOUNCE 5
  50. /* Limits the brightness of the LEDS range of 255-0 (255 is default)*/
  51. #define RGBLIGHT_LIMIT_VAL 128
  52. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  53. //#define MATRIX_HAS_GHOST
  54. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  55. #define LOCKING_SUPPORT_ENABLE
  56. /* Locking resynchronize hack */
  57. #define LOCKING_RESYNC_ENABLE
  58. /* EEPROM for via */
  59. #define DYNAMIC_KEYMAP_LAYER_COUNT 3
  60. /* bootmagic row col assignment */
  61. #define BOOTMAGIC_LITE_ROW 1
  62. #define BOOTMAGIC_LITE_COLUMN 0
  63. #ifdef RGB_MATRIX_ENABLE
  64. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  65. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  66. //# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  67. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  68. # 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)
  69. # 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)
  70. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  71. # define RGB_MATRIX_HUE_STEP 8
  72. # define RGB_MATRIX_SAT_STEP 8
  73. # define RGB_MATRIX_VAL_STEP 8
  74. # define RGB_MATRIX_SPD_STEP 10
  75. /* Disable the animations you don't want/need. You will need to disable a good number of these *
  76. * because they take up a lot of space. Disable until you can successfully compile your firmware. */
  77. // RGB Matrix Animation modes. Explicitly enabled
  78. // For full list of effects, see:
  79. // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
  80. # define ENABLE_RGB_MATRIX_ALPHAS_MODS
  81. # define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  82. # define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  83. # define ENABLE_RGB_MATRIX_BREATHING
  84. # define ENABLE_RGB_MATRIX_BAND_SAT
  85. # define ENABLE_RGB_MATRIX_BAND_VAL
  86. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  87. # define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  88. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  89. # define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  90. # define ENABLE_RGB_MATRIX_CYCLE_ALL
  91. # define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  92. # define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
  93. # define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  94. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
  95. # define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  96. # define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
  97. # define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
  98. # define ENABLE_RGB_MATRIX_DUAL_BEACON
  99. # define ENABLE_RGB_MATRIX_RAINBOW_BEACON
  100. # define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  101. # define ENABLE_RGB_MATRIX_RAINDROPS
  102. # define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  103. # define ENABLE_RGB_MATRIX_HUE_BREATHING
  104. # define ENABLE_RGB_MATRIX_HUE_PENDULUM
  105. # define ENABLE_RGB_MATRIX_HUE_WAVE
  106. # define ENABLE_RGB_MATRIX_PIXEL_RAIN
  107. # define ENABLE_RGB_MATRIX_PIXEL_FLOW
  108. # define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
  109. // enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
  110. # define ENABLE_RGB_MATRIX_TYPING_HEATMAP
  111. # define ENABLE_RGB_MATRIX_DIGITAL_RAIN
  112. // enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
  113. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  114. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE
  115. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  116. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  117. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  118. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  119. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  120. # define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  121. # define ENABLE_RGB_MATRIX_SPLASH
  122. # define ENABLE_RGB_MATRIX_MULTISPLASH
  123. # define ENABLE_RGB_MATRIX_SOLID_SPLASH
  124. # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
  125. #endif