config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* Copyright 2021 DZTECH <moyi4681@live.cn>
  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 0x445A
  20. #define PRODUCT_ID 0x1424
  21. #define DEVICE_VER 0x0003
  22. #define MANUFACTURER DZTECH
  23. #define PRODUCT DZ65RGBV3
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 15
  27. #define MATRIX_ROW_PINS { F0, F1, F4, E6, C6 }
  28. #define MATRIX_COL_PINS { F7, F6, F5, C7, B0, B1, B2, B3, B4, D7, D6, D4, D5, D3, D2}
  29. #define UNUSED_PINS
  30. /* COL2ROW, ROW2COL*/
  31. #define DIODE_DIRECTION COL2ROW
  32. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  33. #define DEBOUNCE 5
  34. /* disable these deprecated features by default */
  35. #define NO_ACTION_MACRO
  36. #define NO_ACTION_FUNCTION
  37. #ifdef RGB_MATRIX_ENABLE
  38. #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  39. #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
  40. #define USB_SUSPEND_WAKEUP_DELAY 5000
  41. #define RGB_MATRIX_KEYPRESSES
  42. #define RGB_MATRIX_LED_PROCESS_LIMIT 4
  43. #define RGB_MATRIX_LED_FLUSH_LIMIT 26
  44. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
  45. #define DRIVER_ADDR_1 0b0110000
  46. #define DRIVER_ADDR_2 0b0110000 // this is here for compliancy reasons.
  47. #define DRIVER_COUNT 1
  48. #define DRIVER_1_LED_TOTAL 68
  49. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  50. #define DRIVER_INDICATOR_LED_TOTAL 0
  51. #endif