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.

53 lines
1.8 KiB

  1. #pragma once
  2. /* USB Device descriptor parameter */
  3. #define VENDOR_ID 0x445A
  4. #define PRODUCT_ID 0x1320
  5. #define DEVICE_VER 0x0001
  6. #define MANUFACTURER DZTECH
  7. #define PRODUCT DZ60RGB_WKL
  8. /* key matrix size */
  9. #define MATRIX_ROWS 5
  10. #define MATRIX_COLS 14
  11. /*
  12. * Keyboard Matrix Assignments
  13. *
  14. * Change this to how you wired your keyboard
  15. * COLS: AVR pins used for columns, left to right
  16. * ROWS: AVR pins used for rows, top to bottom
  17. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  18. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  19. *
  20. */
  21. #define MATRIX_ROW_PINS { B1, B10, B11, B14, B12 }
  22. #define MATRIX_COL_PINS { A6, A7, B0, B13, B15, A8, A15, B3, B4, B5, B8, B9, C13, C14 }
  23. #define UNUSED_PINS
  24. /* COL2ROW, ROW2COL*/
  25. #define DIODE_DIRECTION COL2ROW
  26. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  27. #define DEBOUNCE 3
  28. /* disable these deprecated features by default */
  29. #define NO_ACTION_MACRO
  30. #define NO_ACTION_FUNCTION
  31. #ifdef RGB_MATRIX_ENABLE
  32. # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  33. # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  34. # define RGB_MATRIX_KEYPRESSES
  35. # define RGB_MATRIX_LED_PROCESS_LIMIT 4
  36. # define RGB_MATRIX_LED_FLUSH_LIMIT 26
  37. # define DISABLE_RGB_MATRIX_SPLASH
  38. # define DISABLE_RGB_MATRIX_MULTISPLASH
  39. # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  40. # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
  41. # define DRIVER_ADDR_1 0b1010000
  42. # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons.
  43. # define DRIVER_COUNT 2
  44. # define DRIVER_1_LED_TOTAL 62
  45. # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  46. #endif