config.h 4.2 KB

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