config.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include "config_common.h"
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0xFEED
  18. #define PRODUCT_ID 0x6062
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER techkeys.us
  21. #define PRODUCT sixkeykeyboard
  22. #define DESCRIPTION A little 6-key macro pad
  23. /* key matrix size */
  24. #define MATRIX_ROWS 2
  25. #define MATRIX_COLS 3
  26. /* define if matrix has ghost */
  27. //#define MATRIX_HAS_GHOST
  28. /* number of backlight levels */
  29. #define BACKLIGHT_LEVELS 0
  30. /* Set 0 if debouncing isn't needed */
  31. #define DEBOUNCING_DELAY 5
  32. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  33. #define LOCKING_SUPPORT_ENABLE
  34. /* Locking resynchronize hack */
  35. #define LOCKING_RESYNC_ENABLE
  36. /* Force NKRO Mode - If forced on, must be disabled via magic key (default = LShift+RShift+N) */
  37. #define FORCE_NKRO
  38. /*
  39. * Magic key options
  40. * These options allow the magic key functionality to be changed. This is useful
  41. * if your keyboard/keypad is missing keys and you want magic key support.
  42. */
  43. /* key combination for magic key command */
  44. #define IS_COMMAND() ( \
  45. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  46. )
  47. /* control how magic key switches layers */
  48. //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
  49. //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
  50. //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
  51. /* remap magic keys */
  52. //#define MAGIC_KEY_HELP1 H
  53. //#define MAGIC_KEY_HELP2 SLASH
  54. //#define MAGIC_KEY_DEBUG D
  55. //#define MAGIC_KEY_DEBUG_MATRIX X
  56. //#define MAGIC_KEY_DEBUG_KBD K
  57. //#define MAGIC_KEY_DEBUG_MOUSE M
  58. //#define MAGIC_KEY_VERSION V
  59. //#define MAGIC_KEY_STATUS S
  60. //#define MAGIC_KEY_CONSOLE C
  61. //#define MAGIC_KEY_LAYER0_ALT1 ESC
  62. //#define MAGIC_KEY_LAYER0_ALT2 GRAVE
  63. //#define MAGIC_KEY_LAYER0 0
  64. //#define MAGIC_KEY_LAYER1 1
  65. //#define MAGIC_KEY_LAYER2 2
  66. //#define MAGIC_KEY_LAYER3 3
  67. //#define MAGIC_KEY_LAYER4 4
  68. //#define MAGIC_KEY_LAYER5 5
  69. //#define MAGIC_KEY_LAYER6 6
  70. //#define MAGIC_KEY_LAYER7 7
  71. //#define MAGIC_KEY_LAYER8 8
  72. //#define MAGIC_KEY_LAYER9 9
  73. //#define MAGIC_KEY_BOOTLOADER PAUSE
  74. //#define MAGIC_KEY_LOCK BSLS
  75. //#define MAGIC_KEY_EEPROM E
  76. //#define MAGIC_KEY_NKRO N
  77. //#define MAGIC_KEY_SLEEP_LED Z
  78. /*
  79. * Feature disable options
  80. * These options are also useful to firmware size reduction.
  81. */
  82. /* disable debug print */
  83. //#define NO_DEBUG
  84. /* disable print */
  85. //#define NO_PRINT
  86. /* disable action features */
  87. //#define NO_ACTION_LAYER
  88. #define NO_ACTION_TAPPING
  89. #define NO_ACTION_ONESHOT
  90. //#define NO_ACTION_MACRO
  91. //#define NO_ACTION_FUNCTION