config.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /* Copyright 2021 trankimtung
  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. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x445A
  19. #define PRODUCT_ID 0x1321
  20. #define DEVICE_VER 0x0003
  21. #define MANUFACTURER DZTECH
  22. #define PRODUCT DZ60RGB_WKL
  23. /* key matrix size */
  24. #define MATRIX_ROWS 5
  25. #define MATRIX_COLS 14
  26. /*
  27. * Keyboard Matrix Assignments
  28. *
  29. * Change this to how you wired your keyboard
  30. * COLS: AVR pins used for columns, left to right
  31. * ROWS: AVR pins used for rows, top to bottom
  32. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  33. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  34. *
  35. */
  36. #define MATRIX_ROW_PINS { F5, F4, F1, B3, B2 }
  37. #define MATRIX_COL_PINS { C7, F7, F6, F0, B0, B1, B4, D7, D6, D4, D5, D3, D2, B7 }
  38. #define UNUSED_PINS
  39. /* COL2ROW, ROW2COL*/
  40. #define DIODE_DIRECTION COL2ROW
  41. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  42. #define DEBOUNCE 3
  43. /* disable these deprecated features by default */
  44. #define NO_ACTION_MACRO
  45. #define NO_ACTION_FUNCTION
  46. #ifdef RGB_MATRIX_ENABLE
  47. # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  48. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  49. # define RGB_MATRIX_KEYPRESSES
  50. # define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  51. # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  52. # define DISABLE_RGB_MATRIX_BAND_SAT
  53. # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  54. # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  55. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
  56. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
  57. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
  58. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
  59. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
  60. # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
  61. # define DISABLE_RGB_MATRIX_SPLASH
  62. # define DISABLE_RGB_MATRIX_MULTISPLASH
  63. # define DISABLE_RGB_MATRIX_SOLID_SPLASH
  64. # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  65. # define DISABLE_RGB_MATRIX_DIGITAL_RAIN
  66. # define DRIVER_ADDR_1 0b1010000
  67. # define DRIVER_COUNT 1
  68. # define DRIVER_LED_TOTAL 62
  69. #endif