config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 NUMBER_OF_ENCODERS 1
  36. #define ENCODERS_PAD_A { D4 }
  37. #define ENCODERS_PAD_B { D2 }
  38. #define RGB_DI_PIN B6
  39. #define SOFT_SERIAL_PIN D3
  40. /* COL2ROW or ROW2COL */
  41. #define DIODE_DIRECTION COL2ROW
  42. /* define if matrix has ghost */
  43. //#define MATRIX_HAS_GHOST
  44. /* Set 0 if debouncing isn't needed */
  45. #define DEBOUNCING_DELAY 5
  46. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  47. #define LOCKING_SUPPORT_ENABLE
  48. /* Locking resynchronize hack */
  49. #define LOCKING_RESYNC_ENABLE
  50. /* ws2812 RGB LED */
  51. #define RGBLED_NUM 34 // Number of LEDs
  52. #define RGBLIGHT_ANIMATIONS
  53. /*
  54. * Feature disable options
  55. * These options are also useful to firmware size reduction.
  56. */
  57. /* disable debug print */
  58. // #define NO_DEBUG
  59. /* disable print */
  60. // #define NO_PRINT
  61. /* disable action features */
  62. //#define NO_ACTION_LAYER
  63. //#define NO_ACTION_TAPPING
  64. //#define NO_ACTION_ONESHOT
  65. //#define NO_ACTION_MACRO
  66. //#define NO_ACTION_FUNCTION