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.

107 lines
3.4 KiB

  1. /* Copyright 2020 MT <704340378@qq.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 0x4D54 // "MT"
  20. #define PRODUCT_ID 0x0002
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER MT
  23. #define PRODUCT MT84
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 15
  27. /*
  28. * Keyboard Matrix Assignments
  29. *
  30. * Change this to how you wired your keyboard
  31. * COLS: AVR pins used for columns, left to right
  32. * ROWS: AVR pins used for rows, top to bottom
  33. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  34. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  35. *
  36. */
  37. #define MATRIX_ROW_PINS { D7, D6, D5, D3, D2, D4 }
  38. #define MATRIX_COL_PINS {B5, B6, C6, C7, F7, F6,F5, F4, F1, F0, B1, B2, B3, B7, E6 }
  39. #define UNUSED_PINS
  40. /* COL2ROW, ROW2COL*/
  41. #define DIODE_DIRECTION COL2ROW
  42. #ifdef RGB_MATRIX_ENABLE
  43. #define RGB_MATRIX_KEYPRESSES
  44. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  45. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
  46. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
  47. #define RGB_MATRIX_LED_PROCESS_LIMIT 20
  48. #define RGB_MATRIX_LED_FLUSH_LIMIT 26
  49. #define DRIVER_ADDR_1 0b1010000
  50. #define DRIVER_ADDR_2 0b1011111
  51. #define DRIVER_COUNT 2
  52. #define DRIVER_1_LED_TOTAL 44
  53. #define DRIVER_2_LED_TOTAL 40
  54. #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  55. #define DISABLE_RGB_MATRIX_ALPHAS_MODS
  56. #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  57. #define DISABLE_RGB_MATRIX_BREATHING
  58. #define DISABLE_RGB_MATRIX_BAND_SAT
  59. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  60. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  61. #define DISABLE_RGB_MATRIX_RAINDROPS
  62. #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  63. #define DISABLE_RGB_MATRIX_TYPING_HEATMAP
  64. #define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  65. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE
  66. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  67. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  68. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  69. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  70. #define DISABLE_RGB_MATRIX_SPLASH
  71. #define DISABLE_RGB_MATRIX_SOLID_SPLASH
  72. #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  73. #endif
  74. #define RGB_DI_PIN B0
  75. #ifdef RGB_DI_PIN
  76. // define RGBLIGHT_ANIMATIONS
  77. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  78. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  79. #define RGBLIGHT_EFFECT_BREATHING
  80. # define RGBLED_NUM 18
  81. # define RGBLIGHT_HUE_STEP 8
  82. # define RGBLIGHT_SAT_STEP 8
  83. # define RGBLIGHT_VAL_STEP 8
  84. # define RGBLIGHT_SLEEP
  85. #endif
  86. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  87. #define DEBOUNCE 5
  88. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  89. #define LOCKING_SUPPORT_ENABLE
  90. /* Locking resynchronize hack */
  91. #define LOCKING_RESYNC_ENABLE