config.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 NUMBER_OF_ENCODERS 1
  29. #define ENCODERS_PAD_A { B7 }
  30. #define ENCODERS_PAD_B { D5 }
  31. /* key matrix pins */
  32. #define MATRIX_ROW_PINS { F4, F5, F6, F7, B1, F1, NO_PIN }
  33. #define MATRIX_COL_PINS { F0, D1, D0, D4, C6, D7, E6, B4, B5, B3, B2, B6, D2, C7 }
  34. #define UNUSED_PINS
  35. /* COL2ROW or ROW2COL */
  36. #define DIODE_DIRECTION COL2ROW
  37. /* Set 0 if debouncing isn't needed */
  38. #define DEBOUNCE 5
  39. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  40. #define LOCKING_SUPPORT_ENABLE
  41. /* Locking resynchronize hack */
  42. #define LOCKING_RESYNC_ENABLE
  43. /* ws2812 RGB LED --- DIN Pin Routed to VIA on main PCB marked "RGB" */
  44. #define RGB_DI_PIN D3
  45. #define RGBLIGHT_ANIMATIONS
  46. #define RGBLED_NUM 16