2
0

config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. Base Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
  3. Modified 2017 Andrew Novak <ndrw.nvk@gmail.com>
  4. Modified 2018 Anthony Wharton <th3ant@gmail.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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. #define VENDOR_ID 0x20A0
  18. #define PRODUCT_ID 0x422D
  19. // Edit usbconfig.h to change these.
  20. #define MANUFACTURER ymdkey
  21. #define PRODUCT ymd96
  22. /* Matrix Size */
  23. #define MATRIX_ROWS 8
  24. #define MATRIX_COLS 15
  25. #define DIODE_DIRECTION COL2ROW
  26. /* Required for MX Locks installed */
  27. #define LOCKING_SUPPORT_ENABLE
  28. #define LOCKING_RESYNC_ENABLE
  29. #define PREVENT_STUCK_MODIFIERS
  30. #define TAPPING_TOGGLE 3
  31. #define NO_UART 1
  32. #define BACKLIGHT_LEVELS 12
  33. /* RGB Underglow */
  34. // The RGB_DI_PING value seems to be shared between all PS2AVRGB boards.
  35. // The same pin is used on the JJ40, at least.
  36. #define RGBLED_NUM 18
  37. #define RGB_DI_PIN E2 // NOTE: for PS2AVRGB boards, underglow commands are send
  38. // via I2C to 0xB0
  39. #define RGBLIGHT_ANIMATIONS
  40. #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1.0-2.7
  41. #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 1-255
  42. #define RGBLIGHT_EFFECT_SNAKE_LENGTH 7
  43. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3
  44. #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0
  45. #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM RGBLED_NUM
  46. #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
  47. #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 500
  48. /* key combination for command */
  49. #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))