config.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*Copyright 2020 RGBKB
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. #include "config_common.h"
  15. #define VENDOR_ID 0x5247 // "RG" - RGBKB
  16. #define PRODUCT_ID 0x8C9C // Pan
  17. #define DEVICE_VER 0x0002
  18. #define MANUFACTURER RGBKB
  19. #define PRODUCT Pan
  20. /* key matrix size */
  21. #define MATRIX_ROWS 5
  22. #define MATRIX_COLS 13
  23. #define ENCODER_RESOLUTION 4
  24. #define RGBLED_NUM 64
  25. #define RGBLIGHT_ANIMATIONS
  26. #define DRIVER_LED_TOTAL RGBLED_NUM
  27. /* COL2ROW, ROW2COL*/
  28. #define DIODE_DIRECTION COL2ROW
  29. #define RGBLIGHT_LIMIT_VAL 120
  30. #define USB_MAX_POWER_CONSUMPTION 500
  31. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  32. #define DEBOUNCE 5