config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Copyright 2021 Danny Nguyen (@nooges)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "config_common.h"
  5. /* key matrix size */
  6. #define MATRIX_ROWS 1
  7. #define MATRIX_COLS 1
  8. /*
  9. * Keyboard Matrix Assignments
  10. */
  11. #define MATRIX_ROW_PINS { E6 }
  12. #define MATRIX_COL_PINS { F0 }
  13. #define DIODE_DIRECTION COL2ROW
  14. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  15. #define DEBOUNCE 5
  16. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  17. //#define MATRIX_HAS_GHOST
  18. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  19. #define LOCKING_SUPPORT_ENABLE
  20. /* Locking resynchronize hack */
  21. #define LOCKING_RESYNC_ENABLE
  22. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  23. * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
  24. */
  25. //#define GRAVE_ESC_CTRL_OVERRIDE
  26. /*
  27. * Force NKRO
  28. *
  29. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  30. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  31. * makefile for this to work.)
  32. *
  33. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  34. * until the next keyboard reset.
  35. *
  36. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  37. * fully operational during normal computer usage.
  38. *
  39. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  40. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  41. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  42. * power-up.
  43. *
  44. */
  45. //#define FORCE_NKRO
  46. /*
  47. * Feature disable options
  48. * These options are also useful to firmware size reduction.
  49. */
  50. /* disable debug print */
  51. //#define NO_DEBUG
  52. /* disable print */
  53. //#define NO_PRINT
  54. /* disable action features */
  55. //#define NO_ACTION_LAYER
  56. //#define NO_ACTION_TAPPING
  57. //#define NO_ACTION_ONESHOT
  58. /* Bootmagic Lite key configuration */
  59. //#define BOOTMAGIC_LITE_ROW 0
  60. //#define BOOTMAGIC_LITE_COLUMN 0