config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. #define brightnessMax 8
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0x4D47 // MG for Monstargear
  21. #define PRODUCT_ID 0x5344 // SD for Soldered
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER Monstargear
  24. #define PRODUCT XO87 Soldered
  25. /* key matrix size */
  26. #define MATRIX_ROWS 6
  27. #define MATRIX_COLS 16
  28. #define BACKLIGHT_PIN F0
  29. #define MATRIX_ROW_PINS { E6,E7,E3,B0,B1,A2}
  30. #define MATRIX_COL_PINS { C5,C3,C1,E1,D6,D2,B7,B3,F6,F7,F3,A5,A1,E2,C7,A6 }
  31. #define KEYLED_ROWS 6
  32. #define KEYLED_COLS 16
  33. #define KEYLED_ROW_PINS { E5,B4,B5,F0,C6,D5 }
  34. #define KEYLED_COL_PINS { C4,C2,C0,E0,D4,E4,B6,B2,F4,A0,F2,A4,F1,A7,D3,A3 }
  35. #define LED_DRIVER_LED_COUNT 93
  36. #define UNUSED_PINS
  37. #define DIODE_DIRECTION ROW2COL
  38. #define RGB_DI_PIN D7
  39. #define DRIVER_LED_TOTAL 21
  40. #define DRIVER_COUNT 2
  41. #define RGBLED_NUM 21
  42. #define RGBLIGHT_ANIMATIONS
  43. #define DEBOUNCE 5
  44. #define LOCKING_SUPPORT_ENABLE
  45. #define LOCKING_RESYNC_ENABLE
  46. #define BACKLIGHT_LEVELS 3