config.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /* Copyright 2020
  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 0x7844 // "xD"
  20. #define PRODUCT_ID 0x8450 // 84 "P"
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER KPrepublic
  23. #define PRODUCT XD84 Pro
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 15
  27. #define MATRIX_ROW_PINS { F4, D0, D1, D2, D3, D5 }
  28. #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3, F7 }
  29. #define UNUSED_PINS { B0, E2 }
  30. #define DIODE_DIRECTION COL2ROW
  31. #define LED_CAPS_LOCK_PIN B2
  32. #define LED_PIN_ON_STATE 0
  33. #define RGB_DI_PIN F6
  34. #ifdef RGB_DI_PIN
  35. #define RGBLED_NUM 12
  36. // #define RGBLIGHT_HUE_STEP 8
  37. // #define RGBLIGHT_SAT_STEP 8
  38. // #define RGBLIGHT_VAL_STEP 8
  39. // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  40. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  41. // /*== all animations enable ==*/
  42. #define RGBLIGHT_ANIMATIONS
  43. // /*== or choose animations ==*/
  44. // #define RGBLIGHT_EFFECT_BREATHING
  45. // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  46. // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  47. // #define RGBLIGHT_EFFECT_SNAKE
  48. // #define RGBLIGHT_EFFECT_KNIGHT
  49. // #define RGBLIGHT_EFFECT_CHRISTMAS
  50. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  51. // #define RGBLIGHT_EFFECT_RGB_TEST
  52. // #define RGBLIGHT_EFFECT_ALTERNATING
  53. #endif
  54. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  55. #define DEBOUNCE 5
  56. /* number of backlight levels */
  57. #define BACKLIGHT_PIN F5
  58. #define BACKLIGHT_LEVELS 10
  59. #define BACKLIGHT_ON_STATE 0
  60. // #define BACKLIGHT_BREATHING
  61. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  62. #define LOCKING_SUPPORT_ENABLE
  63. /* Locking resynchronize hack */
  64. #define LOCKING_RESYNC_ENABLE
  65. #define NO_ACTION_MACRO
  66. #define NO_ACTION_FUNCTION