config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. /* Copyright 2019 Garret G. (TheRoyalSweatshirt)
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  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. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.#pragma once
  16. */
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xFEED
  20. #define PRODUCT_ID 0x0002
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Kingly-Keys
  23. #define PRODUCT The_RoPro
  24. #define DESCRIPTION A 75-key ortholinear keyboard with rotary encoder
  25. /* key matrix size */
  26. #define MATRIX_ROWS 7
  27. #define MATRIX_COLS 14
  28. #define ENCODERS_PAD_A { B7 }
  29. #define ENCODERS_PAD_B { D5 }
  30. /* key matrix pins */
  31. #define MATRIX_ROW_PINS { F4, F5, F6, F7, B1, F1, NO_PIN }
  32. #define MATRIX_COL_PINS { F0, D1, D0, D4, C6, D7, E6, B4, B5, B3, B2, B6, D2, C7 }
  33. #define UNUSED_PINS
  34. /* COL2ROW or ROW2COL */
  35. #define DIODE_DIRECTION COL2ROW
  36. /* Set 0 if debouncing isn't needed */
  37. #define DEBOUNCE 5
  38. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  39. #define LOCKING_SUPPORT_ENABLE
  40. /* Locking resynchronize hack */
  41. #define LOCKING_RESYNC_ENABLE
  42. /* ws2812 RGB LED --- DIN Pin Routed to VIA on main PCB marked "RGB" */
  43. #define RGB_DI_PIN D3
  44. #define RGBLIGHT_ANIMATIONS
  45. #define RGBLED_NUM 16