config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. Copyright 2017 Danny Nguyen <danny@hexwire.com>
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xFEED
  17. #define PRODUCT_ID 0x3061
  18. #define DEVICE_VER 0x0002
  19. #define MANUFACTURER Legonut
  20. #define PRODUCT "Project Zen"
  21. #define DESCRIPTION "Split gaming keyboard"
  22. /* key matrix size */
  23. // Rows are doubled-up
  24. // wiring of each half
  25. #ifdef CONVERT_TO_PROTON_C
  26. #define MATRIX_ROWS 5
  27. #define MATRIX_COLS 7
  28. #else
  29. #define MATRIX_ROWS 10
  30. #define MATRIX_COLS 7
  31. #endif
  32. // Proton-C does pin conversion
  33. #define MATRIX_ROW_PINS { C6, E6, B5, D7, B4 }
  34. #define MATRIX_COL_PINS { F4, F5, F6, F7, B3, B1, B2 }
  35. #define ENCODERS_PAD_A { D4 }
  36. #define ENCODERS_PAD_B { D2 }
  37. #define RGB_DI_PIN B6
  38. #define SOFT_SERIAL_PIN D3
  39. /* COL2ROW or ROW2COL */
  40. #define DIODE_DIRECTION COL2ROW
  41. /* define if matrix has ghost */
  42. //#define MATRIX_HAS_GHOST
  43. /* Set 0 if debouncing isn't needed */
  44. #define DEBOUNCE 5
  45. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  46. #define LOCKING_SUPPORT_ENABLE
  47. /* Locking resynchronize hack */
  48. #define LOCKING_RESYNC_ENABLE
  49. /* ws2812 RGB LED */
  50. #define RGBLED_NUM 34 // Number of LEDs
  51. #define RGBLIGHT_ANIMATIONS
  52. /*
  53. * Feature disable options
  54. * These options are also useful to firmware size reduction.
  55. */
  56. /* disable debug print */
  57. // #define NO_DEBUG
  58. /* disable print */
  59. // #define NO_PRINT
  60. /* disable action features */
  61. //#define NO_ACTION_LAYER
  62. //#define NO_ACTION_TAPPING
  63. //#define NO_ACTION_ONESHOT
  64. //#define NO_ACTION_MACRO
  65. //#define NO_ACTION_FUNCTION