config.h 2.3 KB

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