config.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /* Copyright 2020 MT
  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 0x0001
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER MT
  23. #define PRODUCT MT64RGB
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 14
  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 }
  38. #define MATRIX_COL_PINS {B5, B6, C6, C7, F7, F6,F5, F4, F1, F0, B1, B2, B3, B7 }
  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_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
  46. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 160
  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 0b1010000
  51. #define DRIVER_COUNT 2
  52. #define DRIVER_1_LED_TOTAL 64
  53. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  54. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  55. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  56. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  57. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  58. #define DISABLE_RGB_MATRIX_BAND_SAT
  59. #define DISABLE_RGB_MATRIX_BAND_VAL
  60. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  61. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  62. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  63. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  64. #define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  65. #define DISABLE_RGB_MATRIX_TYPING_HEATMAP
  66. #define DISABLE_RGB_MATRIX_RAINBOW_BEACON
  67. #define DISABLE_RGB_MATRIX_ALPHAS_MODS
  68. #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  69. #define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
  70. #endif
  71. #define RGB_DI_PIN B0
  72. #ifdef RGB_DI_PIN
  73. #define RGBLIGHT_ANIMATIONS
  74. #define RGBLED_NUM 18
  75. #define RGBLIGHT_HUE_STEP 5
  76. #define RGBLIGHT_SAT_STEP 5
  77. #define RGBLIGHT_VAL_STEP 5
  78. #define RGBLIGHT_SLEEP
  79. #endif
  80. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  81. #define DEBOUNCE 5
  82. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  83. #define LOCKING_SUPPORT_ENABLE
  84. /* Locking resynchronize hack */
  85. #define LOCKING_RESYNC_ENABLE
  86. /* VIA related config */
  87. #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2