config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* Copyright 2020 Team Mechlovin'
  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. #define PRODUCT_ID 0x8710
  18. #define DEVICE_VER 0x0001
  19. #define PRODUCT Infinity 87 RGB rev1
  20. #define MATRIX_ROW_PINS { A10, A13, A14, C13, A4, A3 }
  21. #define MATRIX_COL_PINS { B12, B13, B14, B15, A8, A9, B11, B10, B2, B1, B0, A7, A6, A5, A2, A1, A0 }
  22. #define DIODE_DIRECTION COL2ROW
  23. //rgb matrix setting
  24. // This is a 7-bit address, that gets left-shifted and bit 0
  25. // set to 0 for write, 1 for read (as per I2C protocol)
  26. // The address will vary depending on your wiring:
  27. // 0b0110000 AD <-> GND
  28. // 0b0110011 AD <-> VCC
  29. // 0b0110001 AD <-> SCL
  30. // 0b0110010 AD <-> SDA
  31. #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
  32. #define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
  33. #define RGB_MATRIX_KEYPRESSES
  34. #define DISABLE_RGB_MATRIX_SPLASH
  35. #define DISABLE_RGB_MATRIX_MULTISPLASH
  36. #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
  37. //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR
  38. #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_ALL
  39. //#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE_SIMPLE
  40. #define DRIVER_ADDR_1 0b0110010
  41. #define DRIVER_ADDR_2 0b0110010 // this is here for compliancy reasons.
  42. #define DRIVER_COUNT 1
  43. #define DRIVER_1_LED_TOTAL 91
  44. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
  45. #define DRIVER_INDICATOR_LED_TOTAL 0