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.

122 lines
3.8 KiB

  1. #pragma once
  2. #include "config_common.h"
  3. /* USB Device descriptor parameter */
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x6666
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER bpiphany
  8. #define PRODUCT sixshooter
  9. #define DESCRIPTION A PCB for the CM Storm switch tester utilizing a Teensy 2.0.
  10. /* key matrix size */
  11. #define MATRIX_ROWS 1
  12. #define MATRIX_COLS 6
  13. /*
  14. * Keyboard Matrix Assignments
  15. *
  16. * Change this to how you wired your keyboard
  17. * COLS: AVR pins used for columns, left to right
  18. * ROWS: AVR pins used for rows, top to bottom
  19. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  20. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  21. *
  22. */
  23. #define MATRIX_ROW_PINS { }
  24. #define MATRIX_COL_PINS { F7, F6, F1, F5, F4, F0 }
  25. #define UNUSED_PINS
  26. /* COL2ROW, ROW2COL*/
  27. #define DIODE_DIRECTION COL2ROW
  28. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  29. #define DEBOUNCE 5
  30. /*
  31. * Force NKRO
  32. *
  33. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  34. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  35. * makefile for this to work.)
  36. *
  37. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  38. * until the next keyboard reset.
  39. *
  40. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  41. * fully operational during normal computer usage.
  42. *
  43. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  44. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  45. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  46. * power-up.
  47. *
  48. */
  49. //#define FORCE_NKRO
  50. /*
  51. * Magic Key Options
  52. *
  53. * Magic keys are hotkey commands that allow control over firmware functions of
  54. * the keyboard. They are best used in combination with the HID Listen program,
  55. * found here: https://www.pjrc.com/teensy/hid_listen.html
  56. *
  57. * The options below allow the magic key functionality to be changed. This is
  58. * useful if your keyboard/keypad is missing keys and you want magic key support.
  59. *
  60. */
  61. /* control how magic key switches layers */
  62. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  63. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  64. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  65. /* override magic key keymap */
  66. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
  67. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
  68. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
  69. //#define MAGIC_KEY_HELP1 H
  70. //#define MAGIC_KEY_HELP2 SLASH
  71. //#define MAGIC_KEY_DEBUG D
  72. //#define MAGIC_KEY_DEBUG_MATRIX X
  73. //#define MAGIC_KEY_DEBUG_KBD K
  74. //#define MAGIC_KEY_DEBUG_MOUSE M
  75. //#define MAGIC_KEY_VERSION V
  76. //#define MAGIC_KEY_STATUS S
  77. //#define MAGIC_KEY_CONSOLE C
  78. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  79. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  80. //#define MAGIC_KEY_LAYER0 0
  81. //#define MAGIC_KEY_LAYER1 1
  82. //#define MAGIC_KEY_LAYER2 2
  83. //#define MAGIC_KEY_LAYER3 3
  84. //#define MAGIC_KEY_LAYER4 4
  85. //#define MAGIC_KEY_LAYER5 5
  86. //#define MAGIC_KEY_LAYER6 6
  87. //#define MAGIC_KEY_LAYER7 7
  88. //#define MAGIC_KEY_LAYER8 8
  89. //#define MAGIC_KEY_LAYER9 9
  90. //#define MAGIC_KEY_BOOTLOADER PAUSE
  91. //#define MAGIC_KEY_LOCK CAPS
  92. //#define MAGIC_KEY_EEPROM E
  93. //#define MAGIC_KEY_NKRO N
  94. //#define MAGIC_KEY_SLEEP_LED Z
  95. /*
  96. * Feature disable options
  97. * These options are also useful to firmware size reduction.
  98. */
  99. /* disable debug print */
  100. //#define NO_DEBUG
  101. /* disable print */
  102. //#define NO_PRINT
  103. /* disable action features */
  104. //#define NO_ACTION_LAYER
  105. //#define NO_ACTION_TAPPING
  106. //#define NO_ACTION_ONESHOT
  107. //#define NO_ACTION_MACRO
  108. //#define NO_ACTION_FUNCTION