You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.9 KiB

  1. /* Copyright 2021 @ Keychron(https://www.keychron.com)
  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. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x3434
  19. #define MANUFACTURER Keychron
  20. #define PRODUCT Keychron Q1
  21. /* key matrix size */
  22. #define MATRIX_ROWS 6
  23. #define MATRIX_COLS 15
  24. /* COL2ROW or ROW2COL */
  25. #define DIODE_DIRECTION ROW2COL
  26. /* Set 0 if debouncing isn't needed */
  27. #define DEBOUNCE 5
  28. /* RGB Matrix Driver Configuration */
  29. #define DRIVER_COUNT 2
  30. #define DRIVER_ADDR_1 0b1010000
  31. #define DRIVER_ADDR_2 0b1011111
  32. /* DIP switch */
  33. #define DIP_SWITCH_MATRIX_GRID { {0,1} }
  34. /* Disable DIP switch in matrix data */
  35. #define MATRIX_MASKED
  36. /* NKRO */
  37. #define FORCE_NKRO
  38. /* Disable a single effect */
  39. #define DISABLE_RGB_MATRIX_ALPHAS_MODS
  40. #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
  41. #define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
  42. #define DISABLE_RGB_MATRIX_BAND_SAT
  43. #define DISABLE_RGB_MATRIX_BAND_VAL
  44. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
  45. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
  46. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
  47. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  48. #define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
  49. #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
  50. #define DISABLE_RGB_MATRIX_HUE_BREATHING
  51. #define DISABLE_RGB_MATRIX_HUE_PENDULUM
  52. #define DISABLE_RGB_MATRIX_HUE_WAVE