You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
4.2 KiB

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