config.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0x04D8
  20. #define PRODUCT_ID 0xEAF3
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Swiftrax
  23. #define PRODUCT Trifecta
  24. /* key matrix size */
  25. #define MATRIX_ROWS 10
  26. #define MATRIX_COLS 8
  27. /* key matrix pins */
  28. #define MATRIX_ROW_PINS { B0, B7, F7, B1, B6, C6, C7, B5, F6, D2 }
  29. #define MATRIX_COL_PINS { F0, F1, F4, F5, D1, B2, D0, B3 }
  30. #define ENCODERS_PAD_A { D4, D6, D7 }
  31. #define ENCODERS_PAD_B { B4, D3, D5 }
  32. /* COL2ROW, ROW2COL*/
  33. #define DIODE_DIRECTION COL2ROW
  34. #define RGB_DI_PIN E6
  35. #define DRIVER_LED_TOTAL 80
  36. /* RGB LED */
  37. #ifdef RGBLIGHT_ENABLE
  38. #define RGB_DI_PIN E6
  39. #define RGBLED_NUM 80 // Number of LEDs. backlight x69
  40. #define RGBLIGHT_HUE_STEP 10
  41. #define RGBLIGHT_SAT_STEP 17
  42. #define RGBLIGHT_VAL_STEP 17
  43. #define RGBLIGHT_ANIMATIONS
  44. #endif
  45. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  46. #define DEBOUNCE 5
  47. /* Limits the brightness of the LEDS range of 255-0 (255 is default)*/
  48. #define RGBLIGHT_LIMIT_VAL 128
  49. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  50. //#define MATRIX_HAS_GHOST
  51. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  52. #define LOCKING_SUPPORT_ENABLE
  53. /* Locking resynchronize hack */
  54. #define LOCKING_RESYNC_ENABLE
  55. /* EEPROM for via */
  56. #define DYNAMIC_KEYMAP_LAYER_COUNT 3
  57. /* bootmagic row col assignment */
  58. #define BOOTMAGIC_LITE_ROW 1
  59. #define BOOTMAGIC_LITE_COLUMN 0
  60. #ifdef RGB_MATRIX_ENABLE
  61. # define RGB_MATRIX_KEYPRESSES // reacts to keypresses
  62. // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
  63. // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  64. //# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  65. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  66. # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
  67. # 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)
  68. # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 150 out of 255. Higher may cause the controller to crash.
  69. # define RGB_MATRIX_HUE_STEP 8
  70. # define RGB_MATRIX_SAT_STEP 8
  71. # define RGB_MATRIX_VAL_STEP 8
  72. # define RGB_MATRIX_SPD_STEP 10
  73. /* Disable the animations you don't want/need. You will need to disable a good number of these *
  74. * because they take up a lot of space. Disable until you can successfully compile your firmware. */
  75. // # define DISABLE_RGB_MATRIX_ALPHAS_MODS
  76. // # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  77. // # define DISABLE_RGB_MATRIX_BREATHING
  78. // # define DISABLE_RGB_MATRIX_CYCLE_ALL
  79. // # define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
  80. // # define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
  81. // # define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
  82. // # define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  83. // # define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
  84. // # define DISABLE_RGB_MATRIX_DUAL_BEACON
  85. // # define DISABLE_RGB_MATRIX_RAINBOW_BEACON
  86. // # define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  87. // # define DISABLE_RGB_MATRIX_RAINDROPS
  88. // # define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  89. // # define DISABLE_RGB_MATRIX_TYPING_HEATMAP
  90. // # define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  91. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE
  92. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  93. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  94. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  95. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  96. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  97. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  98. // # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  99. // # define DISABLE_RGB_MATRIX_SPLASH
  100. // # define DISABLE_RGB_MATRIX_MULTISPLASH
  101. // # define DISABLE_RGB_MATRIX_SOLID_SPLASH
  102. // # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  103. #endif