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.

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