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.

64 lines
2.1 KiB

  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 0X1012
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER DZTECH
  23. #define PRODUCT DUO-S
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 15
  27. #define MATRIX_ROW_PINS { A15, B3, B4, B5, B11 }
  28. #define MATRIX_COL_PINS { B12, B13, B14, A8, B9, C13, C14, C15, A1, A2, A3, A4, A5, A6, A7 }
  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. #define RGB_DI_PIN B15
  35. #ifdef RGB_DI_PIN
  36. #define RGBLIGHT_EFFECT_BREATHING
  37. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  38. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  39. #define RGBLIGHT_EFFECT_SNAKE
  40. #define RGBLIGHT_EFFECT_KNIGHT
  41. #define RGBLIGHT_EFFECT_CHRISTMAS
  42. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  43. #define RGBLIGHT_EFFECT_RGB_TEST
  44. #define RGBLIGHT_EFFECT_ALTERNATING
  45. #define RGBLIGHT_EFFECT_TWINKLE
  46. #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 6)
  47. #define RGBLIGHT_DEFAULT_SPD 15
  48. #define RGBLED_NUM 16
  49. #define RGBLIGHT_HUE_STEP 10
  50. #define RGBLIGHT_SAT_STEP 10
  51. #define RGBLIGHT_VAL_STEP 10
  52. #define RGBLIGHT_SLEEP
  53. #endif
  54. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  55. #define LOCKING_SUPPORT_ENABLE
  56. /* Locking resynchronize hack */
  57. #define LOCKING_RESYNC_ENABLE
  58. #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2