config.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 RGBLIGHT_ANIMATIONS
  26. // #define RGBLED_NUM 16
  27. // #define RGBLIGHT_HUE_STEP 8
  28. // #define RGBLIGHT_SAT_STEP 8
  29. // #define RGBLIGHT_VAL_STEP 8
  30. // #endif
  31. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  32. #define DEBOUNCE 5
  33. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  34. //#define MATRIX_HAS_GHOST
  35. /* number of backlight levels */
  36. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  37. #define LOCKING_SUPPORT_ENABLE
  38. /* Locking resynchronize hack */
  39. #define LOCKING_RESYNC_ENABLE
  40. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  41. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  42. */
  43. // #define GRAVE_ESC_CTRL_OVERRIDE
  44. /*
  45. * Force NKRO
  46. *
  47. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  48. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  49. * makefile for this to work.)
  50. *
  51. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  52. * until the next keyboard reset.
  53. *
  54. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  55. * fully operational during normal computer usage.
  56. *
  57. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  58. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  59. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  60. * power-up.
  61. *
  62. */
  63. //#define FORCE_NKRO
  64. /*
  65. * Feature disable options
  66. * These options are also useful to firmware size reduction.
  67. */
  68. /* disable debug print */
  69. //#define NO_DEBUG
  70. /* disable print */
  71. //#define NO_PRINT
  72. /* disable action features */
  73. //#define NO_ACTION_LAYER
  74. //#define NO_ACTION_TAPPING
  75. //#define NO_ACTION_ONESHOT