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.

125 lines
3.6 KiB

  1. /* Copyright 2020 ademey "MsMustard"
  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 0x4d4d // MM
  20. #define PRODUCT_ID 0x545a // TZ
  21. #define DEVICE_VER 0x0002
  22. #define MANUFACTURER MsMustard
  23. #define PRODUCT Terrazzo
  24. /* key matrix size */
  25. // SWAP FOR PRO MICRO
  26. // #define MATRIX_ROWS 8
  27. #define MATRIX_ROWS 9
  28. #define MATRIX_COLS 6
  29. /* key matrix pins */
  30. // SWAP FOR PRO MICRO
  31. // #define MATRIX_ROW_PINS { D2, D7, E6, B4, B5, B6, B2, B3 }
  32. #define MATRIX_ROW_PINS { D2, D7, E6, B4, B5, B6, B2, B3, F0 }
  33. #define MATRIX_COL_PINS { D3, F4, F5, F6, F7, B1 }
  34. #define UNUSED_PINS
  35. #define DIODE_DIRECTION COL2ROW
  36. /* ROTARY ENCODERS */
  37. /* 4 encoder positions are supported. With multiple
  38. encoder support when using the extra pins of
  39. Elite-C controller.
  40. Use the following configuration guides for your
  41. encoder layout. */
  42. /* PRO MICRO CONFIGURATIONS */
  43. /* If using a Pro Micro, only 1 encoder may be used,
  44. and only in the top or bottom position.
  45. Top and bottom encoders share the same net,
  46. so there is only one configuration. */
  47. /* TOP or BOTTOM */
  48. // #define ENCODERS_PAD_A { C6 }
  49. // #define ENCODERS_PAD_B { D4 }
  50. /* ELITE-C ONLY CONFIGURATIONS */
  51. /* TOP 3
  52. Default configuration */
  53. #define ENCODERS_PAD_A { C6 , B7, C7 }
  54. #define ENCODERS_PAD_B { D4 , D5, F1 }
  55. /* BOTTOM 3 */
  56. // #define ENCODERS_PAD_A { B7, C7, C6 }
  57. // #define ENCODERS_PAD_B { D5, F1, D4 }
  58. /* BOTTOM 2 */
  59. // #define ENCODERS_PAD_A { C7, C6 }
  60. // #define ENCODERS_PAD_B { F1, D4 }
  61. #define ENCODER_RESOLUTION 2
  62. #define BACKLIGHT_LEVELS 5
  63. #ifdef LED_MATRIX_ENABLE
  64. #define LED_DRIVER_ADDR_1 0x74
  65. #define LED_DRIVER_COUNT 1
  66. #define DRIVER_LED_TOTAL 105
  67. #define LED_MATRIX_ROWS 15
  68. #define LED_MATRIX_COLS 7
  69. #define LED_MATRIX_MAXIMUM_BRIGHTNESS 20
  70. #define LED_DISABLE_WHEN_USB_SUSPENDED
  71. #define DISABLE_LED_MATRIX_ALPHAS_MODS
  72. #define DISABLE_LED_MATRIX_BREATHING
  73. #define DISABLE_LED_MATRIX_BAND
  74. #define DISABLE_LED_MATRIX_BAND_PINWHEEL
  75. #define DISABLE_LED_MATRIX_BAND_SPIRAL
  76. #define DISABLE_LED_MATRIX_CYCLE_LEFT_RIGHT
  77. #define DISABLE_LED_MATRIX_CYCLE_UP_DOWN
  78. #define DISABLE_LED_MATRIX_CYCLE_OUT_IN
  79. #define DISABLE_LED_MATRIX_DUAL_BEACON
  80. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_SIMPLE
  81. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_WIDE
  82. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTIWIDE
  83. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_CROSS
  84. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTICROSS
  85. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_NEXUS
  86. #define DISABLE_LED_MATRIX_SOLID_REACTIVE_MULTINEXUS
  87. #define DISABLE_LED_MATRIX_SOLID_SPLASH
  88. #define DISABLE_LED_MATRIX_SOLID_MULTISPLASH
  89. #define DISABLE_LED_MATRIX_WAVE_LEFT_RIGHT
  90. #define DISABLE_LED_MATRIX_WAVE_UP_DOWN
  91. #endif
  92. /* Terrazzo animations */
  93. // #define DISABLE_TERRAZZO_EFFECT_STRIPES
  94. // #define DISABLE_TERRAZZO_EFFECT_DINO
  95. // #define DISABLE_TERRAZZO_EFFECT_OUTRUN
  96. #define DISABLE_TERRAZZO_EFFECT_PAC_DUDE
  97. #define DISABLE_TERRAZZO_EFFECT_HEART
  98. // #define DISABLE_TERRAZZO_EFFECT_WPM_CHART
  99. #define DISABLE_TERRAZZO_EFFECT_DOT