config.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xF7E0
  5. #define PRODUCT_ID 0x0412
  6. #define DEVICE_VER 0x0000
  7. #define MANUFACTURER Boardsource
  8. #define PRODUCT 5x12
  9. #define DESCRIPTION 50 percent ortho keyboard
  10. /* key matrix size */
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 12
  13. #define MATRIX_ROW_PINS { D2, D3, D1, D0, D4 }
  14. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5, B4, E6, D7 }
  15. /* COL2ROW, ROW2COL*/
  16. #define DIODE_DIRECTION COL2ROW
  17. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  18. #define DEBOUNCE 5
  19. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  20. #define LOCKING_SUPPORT_ENABLE
  21. /* Locking resynchronize hack */
  22. #define LOCKING_RESYNC_ENABLE
  23. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  24. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  25. */
  26. // #define GRAVE_ESC_CTRL_OVERRIDE
  27. /*
  28. * Force NKRO
  29. *
  30. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  31. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  32. * makefile for this to work.)
  33. *
  34. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  35. * until the next keyboard reset.
  36. *
  37. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  38. * fully operational during normal computer usage.
  39. *
  40. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  41. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  42. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  43. * power-up.
  44. *
  45. */
  46. //#define FORCE_NKRO
  47. /*
  48. * Magic Key Options
  49. *
  50. * Magic keys are hotkey commands that allow control over firmware functions of
  51. * the keyboard. They are best used in combination with the HID Listen program,
  52. * found here: https://www.pjrc.com/teensy/hid_listen.html
  53. *
  54. * The options below allow the magic key functionality to be changed. This is
  55. * useful if your keyboard/keypad is missing keys and you want magic key support.
  56. *
  57. */
  58. /* control how magic key switches layers */
  59. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  60. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  61. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  62. /* override magic key keymap */
  63. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
  64. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
  65. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
  66. //#define MAGIC_KEY_HELP1 H
  67. //#define MAGIC_KEY_HELP2 SLASH
  68. //#define MAGIC_KEY_DEBUG D
  69. //#define MAGIC_KEY_DEBUG_MATRIX X
  70. //#define MAGIC_KEY_DEBUG_KBD K
  71. //#define MAGIC_KEY_DEBUG_MOUSE M
  72. //#define MAGIC_KEY_VERSION V
  73. //#define MAGIC_KEY_STATUS S
  74. //#define MAGIC_KEY_CONSOLE C
  75. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  76. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  77. //#define MAGIC_KEY_LAYER0 0
  78. //#define MAGIC_KEY_LAYER1 1
  79. //#define MAGIC_KEY_LAYER2 2
  80. //#define MAGIC_KEY_LAYER3 3
  81. //#define MAGIC_KEY_LAYER4 4
  82. //#define MAGIC_KEY_LAYER5 5
  83. //#define MAGIC_KEY_LAYER6 6
  84. //#define MAGIC_KEY_LAYER7 7
  85. //#define MAGIC_KEY_LAYER8 8
  86. //#define MAGIC_KEY_LAYER9 9
  87. //#define MAGIC_KEY_BOOTLOADER PAUSE
  88. //#define MAGIC_KEY_LOCK CAPS
  89. //#define MAGIC_KEY_EEPROM E
  90. //#define MAGIC_KEY_NKRO N
  91. //#define MAGIC_KEY_SLEEP_LED Z
  92. /*
  93. * Feature disable options
  94. * These options are also useful to firmware size reduction.
  95. */
  96. /* disable debug print */
  97. //#define NO_DEBUG
  98. /* disable print */
  99. //#define NO_PRINT
  100. /* disable action features */
  101. //#define NO_ACTION_LAYER
  102. //#define NO_ACTION_TAPPING
  103. //#define NO_ACTION_ONESHOT
  104. //#define NO_ACTION_MACRO
  105. //#define NO_ACTION_FUNCTION
  106. /*
  107. * MIDI options
  108. */
  109. /* Prevent use of disabled MIDI features in the keymap */
  110. //#define MIDI_ENABLE_STRICT 1
  111. /* enable basic MIDI features:
  112. - MIDI notes can be sent when in Music mode is on
  113. */
  114. //#define MIDI_BASIC
  115. /* enable advanced MIDI features:
  116. - MIDI notes can be added to the keymap
  117. - Octave shift and transpose
  118. - Virtual sustain, portamento, and modulation wheel
  119. - etc.
  120. */
  121. //#define MIDI_ADVANCED
  122. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  123. //#define MIDI_TONE_KEYCODE_OCTAVES 1