config.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* Copyright 2021 duoshock
  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. #include "config_common.h"
  17. #define VENDOR_ID 0x4D65
  18. #define PRODUCT_ID 0x3222
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER Merge
  21. #define PRODUCT UM-70
  22. #define MATRIX_ROWS 10
  23. #define MATRIX_COLS 8
  24. #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
  25. #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }
  26. #define UNUSED_PINS
  27. /* COL2ROW or ROW2COL */
  28. #define DIODE_DIRECTION COL2ROW
  29. #define SOFT_SERIAL_PIN D2
  30. #define SPLIT_USB_DETECT
  31. #define MASTER_LEFT
  32. #define SPLIT_MODS_ENABLE
  33. #define RGB_DI_PIN D3
  34. #define RGBLIGHT_SPLIT
  35. #define RGBLED_NUM 83
  36. #define RGBLED_SPLIT { 39, 44 }
  37. #ifdef RGB_MATRIX_ENABLE
  38. # define DRIVER_LED_TOTAL RGBLED_NUM
  39. # define RGB_MATRIX_SPLIT RGBLED_SPLIT
  40. #endif
  41. #define RGBLIGHT_SLEEP
  42. #define RGBLIGHT_LIMIT_VAL 150
  43. #define DEBOUNCE 5
  44. #define B6_AUDIO
  45. #ifdef AUDIO_ENABLE
  46. #define STARTUP_SONG SONG(STARTUP_SOUND)
  47. #endif
  48. #define ENCODERS_PAD_A { B4 }
  49. #define ENCODERS_PAD_B { B5 }
  50. #define BOOTMAGIC_LITE_ROW 0
  51. #define BOOTMAGIC_LITE_COLUMN 0