2
0

config.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. // If using 90 Degree rotation, increase block cout
  53. #ifdef OLED_ROTATE90
  54. #define OLED_DISPLAY_CUSTOM
  55. #define OLED_DISPLAY_WIDTH 128
  56. #define OLED_DISPLAY_HEIGHT 32
  57. #define OLED_MATRIX_SIZE (OLED_DISPLAY_HEIGHT / 8 * OLED_DISPLAY_WIDTH) // 512 (compile time mathed)
  58. #define OLED_BLOCK_TYPE uint16_t // Type to use for segmenting the oled display for smart rendering, use unsigned types only
  59. #define OLED_BLOCK_COUNT (sizeof(OLED_BLOCK_TYPE) * 8) // 8 (compile time mathed)
  60. #define OLED_BLOCK_SIZE (OLED_MATRIX_SIZE / OLED_BLOCK_COUNT) // 32 (compile time mathed)
  61. #define OLED_SOURCE_MAP { 0, 8, 16, 24 }
  62. #define OLED_TARGET_MAP { 24, 16, 8, 0 }
  63. #endif
  64. /*
  65. * Feature disable options
  66. * These options are also useful to firmware size reduction.
  67. */
  68. /* disable debug print */
  69. // #define NO_DEBUG
  70. /* disable print */
  71. // #define NO_PRINT
  72. /* disable action features */
  73. //#define NO_ACTION_LAYER
  74. //#define NO_ACTION_TAPPING
  75. //#define NO_ACTION_ONESHOT
  76. //#define NO_ACTION_MACRO
  77. //#define NO_ACTION_FUNCTION