config.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * config.h
  3. *
  4. Copyright 2020 astro <yuleiz@gmail.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  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 0x4D58 // MX
  20. #define PRODUCT_ID 0x0106 // cain
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Matrix LAB
  23. #define PRODUCT Matrix Cain Keyboard
  24. /* key matrix size */
  25. #define MATRIX_ROWS 9
  26. #define MATRIX_COLS 12
  27. /* key matrix pins */
  28. #define MATRIX_ROW_PINS { F0, C7, C6, D5, D2, D4, D7, B7, D1 }
  29. #define MATRIX_COL_PINS { F1, F4, F5, F6, B5, B6, B3, B2, B1, D0, B4, D6}
  30. #define UNUSED_PINS
  31. /* COL2ROW or ROW2COL */
  32. #define DIODE_DIRECTION COL2ROW
  33. #define RGB_DI_PIN E6
  34. #ifdef RGB_DI_PIN
  35. #define RGBLIGHT_ANIMATIONS
  36. #define RGBLED_NUM 14
  37. #define RGBLIGHT_HUE_STEP 8
  38. #define RGBLIGHT_SAT_STEP 8
  39. #define RGBLIGHT_VAL_STEP 8
  40. #define RGBLIGHT_SLEEP
  41. #define RGBLIGHT_LED_MAP { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 1, 2, 3 }
  42. #endif
  43. #define CAPS_PIN D3
  44. #define NUM_PIN F7
  45. #define SCROLL_PIN B0