config.h 4.9 KB

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