config.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Copyright 2021 datafx
  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 0x4D47 // MG for Monstargear
  20. #define PRODUCT_ID 0x584F // XO for XO87
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Monstargear
  23. #define PRODUCT XO87
  24. /* key matrix size */
  25. #define MATRIX_ROWS 6
  26. #define MATRIX_COLS 16
  27. #define BACKLIGHT_PIN F5
  28. #define MATRIX_ROW_PINS { E6,E7, E3, B0, B1 ,A2}
  29. #define MATRIX_COL_PINS { C5,C3,C1,E1,D6,D2,B7,B3,F6,F7,F3,A5,A1,E2,C7,A6 }
  30. #define UNUSED_PINS
  31. #define DIODE_DIRECTION ROW2COL
  32. #define RGB_DI_PIN D7
  33. #define DRIVER_LED_TOTAL 110
  34. #define RGB_DISABLE_WHEN_USB_SUSPENDED
  35. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 // limits maximum brightness of LEDs to 100 out of 255.
  36. #define RGBLIGHT_LIMIT_VAL 100 // limits maximum brightness of LEDs to 100 out of 255.
  37. #define RGB_MATRIX_KEYPRESSES
  38. #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
  39. #define RGBLED_NUM 110
  40. #define DEBOUNCE 5
  41. #define LOCKING_SUPPORT_ENABLE
  42. #define LOCKING_RESYNC_ENABLE