config.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. #pragma once
  2. #include "config_common.h"
  3. /* key matrix size */
  4. #define MATRIX_ROWS 5
  5. #define MATRIX_COLS 15
  6. /*
  7. * Keyboard Matrix Assignments
  8. *
  9. * Change this to how you wired your keyboard
  10. * COLS: AVR pins used for columns, left to right
  11. * ROWS: AVR pins used for rows, top to bottom
  12. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  13. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  14. *
  15. */
  16. #define MATRIX_ROW_PINS { B2, D1, D0, D4, C6 }
  17. #define MATRIX_COL_PINS { D7, E6, B4, B5, B6, B7, D6, F7, F6, F5, F4, F1, F0, B3, B1 }
  18. /* COL2ROW, ROW2COL*/
  19. #define DIODE_DIRECTION COL2ROW
  20. // #define BACKLIGHT_PIN B7
  21. // #define BACKLIGHT_BREATHING
  22. // #define BACKLIGHT_LEVELS 3
  23. // #define RGB_DI_PIN E2
  24. // #ifdef RGB_DI_PIN
  25. // #define RGBLED_NUM 16
  26. // #define RGBLIGHT_HUE_STEP 8
  27. // #define RGBLIGHT_SAT_STEP 8
  28. // #define RGBLIGHT_VAL_STEP 8
  29. // #endif
  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. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  40. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  41. */
  42. // #define GRAVE_ESC_CTRL_OVERRIDE
  43. /*
  44. * Force NKRO
  45. *
  46. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  47. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  48. * makefile for this to work.)
  49. *
  50. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  51. * until the next keyboard reset.
  52. *
  53. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  54. * fully operational during normal computer usage.
  55. *
  56. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  57. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  58. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  59. * power-up.
  60. *
  61. */
  62. //#define FORCE_NKRO
  63. /*
  64. * Feature disable options
  65. * These options are also useful to firmware size reduction.
  66. */
  67. /* disable debug print */
  68. //#define NO_DEBUG
  69. /* disable print */
  70. //#define NO_PRINT
  71. /* disable action features */
  72. //#define NO_ACTION_LAYER
  73. //#define NO_ACTION_TAPPING
  74. //#define NO_ACTION_ONESHOT