config.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. #include "config_common.h"
  4. #define VENDOR_ID 0xFEED
  5. #define PRODUCT_ID 0x6064
  6. #define DEVICE_VER 0x0001
  7. #define MANUFACTURER LFKeyboards
  8. #define PRODUCT LFK65_HS
  9. #define DESCRIPTION QMK keyboard firmware for LFK65_HS
  10. #define DIODE_DIRECTION COL2ROW
  11. #define MATRIX_ROWS 5
  12. #define MATRIX_COLS 16
  13. #define MATRIX_ROW_PINS {B0, B3, B2, B1, F5}
  14. #define MATRIX_COL_PINS {E6, F4, B7, D5, D3, D2, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4}
  15. #define UNUSED_PINS {}
  16. #define RGBLED_NUM 20 // Number of LEDs
  17. #define QMK_ESC_OUTPUT E6 // usually COL
  18. #define QMK_ESC_INPUT B0 // usually ROW
  19. #define QMK_LED F1
  20. // #define QMK_SPEAKER C6
  21. #define BACKLIGHT_LEVELS 8
  22. #define BACKLIGHT_PWM_MAP {8, 16, 40, 55, 70, 128, 200, 255}
  23. #define RGB_DI_PIN C7 // Have to set it to something to get the ws2812 code to compile
  24. #define RGBLED_NUM 20 // Number of LEDs
  25. #define RGBLIGHT_ANIMATIONS
  26. #define RGBLIGHT_HUE_STEP 10
  27. #define RGBLIGHT_SAT_STEP 17
  28. #define RGBLIGHT_VAL_STEP 17
  29. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  30. #define DEBOUNCING_DELAY 5
  31. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  32. //#define MATRIX_HAS_GHOST
  33. /* number of backlight levels */
  34. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  35. #define LOCKING_SUPPORT_ENABLE
  36. /* Locking resynchronize hack */
  37. #define LOCKING_RESYNC_ENABLE
  38. /*
  39. * Force NKRO
  40. *
  41. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  42. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  43. * makefile for this to work.)
  44. *
  45. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  46. * until the next keyboard reset.
  47. *
  48. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  49. * fully operational during normal computer usage.
  50. *
  51. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  52. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  53. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  54. * power-up.
  55. *
  56. */
  57. //#define FORCE_NKRO
  58. /*
  59. * Magic Key Options
  60. *
  61. * Magic keys are hotkey commands that allow control over firmware functions of
  62. * the keyboard. They are best used in combination with the HID Listen program,
  63. * found here: https://www.pjrc.com/teensy/hid_listen.html
  64. *
  65. * The options below allow the magic key functionality to be changed. This is
  66. * useful if your keyboard/keypad is missing keys and you want magic key support.
  67. *
  68. */
  69. /* key combination for magic key command */
  70. #define IS_COMMAND() ( \
  71. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  72. )
  73. /* control how magic key switches layers */
  74. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  75. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  76. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  77. /* override magic key keymap */
  78. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
  79. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
  80. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
  81. //#define MAGIC_KEY_HELP1 H
  82. //#define MAGIC_KEY_HELP2 SLASH
  83. //#define MAGIC_KEY_DEBUG D
  84. //#define MAGIC_KEY_DEBUG_MATRIX X
  85. //#define MAGIC_KEY_DEBUG_KBD K
  86. //#define MAGIC_KEY_DEBUG_MOUSE M
  87. //#define MAGIC_KEY_VERSION V
  88. //#define MAGIC_KEY_STATUS S
  89. //#define MAGIC_KEY_CONSOLE C
  90. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  91. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  92. //#define MAGIC_KEY_LAYER0 0
  93. //#define MAGIC_KEY_LAYER1 1
  94. //#define MAGIC_KEY_LAYER2 2
  95. //#define MAGIC_KEY_LAYER3 3
  96. //#define MAGIC_KEY_LAYER4 4
  97. //#define MAGIC_KEY_LAYER5 5
  98. //#define MAGIC_KEY_LAYER6 6
  99. //#define MAGIC_KEY_LAYER7 7
  100. //#define MAGIC_KEY_LAYER8 8
  101. //#define MAGIC_KEY_LAYER9 9
  102. //#define MAGIC_KEY_BOOTLOADER PAUSE
  103. //#define MAGIC_KEY_LOCK CAPS
  104. //#define MAGIC_KEY_EEPROM E
  105. //#define MAGIC_KEY_NKRO N
  106. //#define MAGIC_KEY_SLEEP_LED Z
  107. /*
  108. * Feature disable options
  109. * These options are also useful to firmware size reduction.
  110. */
  111. /* disable debug print */
  112. //#define NO_DEBUG
  113. /* disable print */
  114. //#define NO_PRINT
  115. /* disable action features */
  116. //#define NO_ACTION_LAYER
  117. //#define NO_ACTION_TAPPING
  118. //#define NO_ACTION_ONESHOT
  119. //#define NO_ACTION_MACRO
  120. //#define NO_ACTION_FUNCTION
  121. #endif