You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
3.0 KiB

  1. /* Copyright 2021 Yiancar
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0x8968
  20. #define PRODUCT_ID 0x4E4D
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Yiancar-Designs
  23. #define PRODUCT NK1
  24. /* key matrix size */
  25. #define MATRIX_ROWS 1
  26. #define MATRIX_COLS 1
  27. /* Keyboard Matrix Assignments */
  28. #define DIRECT_PINS { \
  29. { D4 } \
  30. }
  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. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  36. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  37. */
  38. // #define GRAVE_ESC_CTRL_OVERRIDE
  39. /*
  40. * Force NKRO
  41. *
  42. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  43. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  44. * makefile for this to work.)
  45. *
  46. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  47. * until the next keyboard reset.
  48. *
  49. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  50. * fully operational during normal computer usage.
  51. *
  52. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  53. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  54. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  55. * power-up.
  56. *
  57. */
  58. //#define FORCE_NKRO
  59. /*
  60. * Magic Key Options
  61. *
  62. * Magic keys are hotkey commands that allow control over firmware functions of
  63. * the keyboard. They are best used in combination with the HID Listen program,
  64. * found here: https://www.pjrc.com/teensy/hid_listen.html
  65. *
  66. * The options below allow the magic key functionality to be changed. This is
  67. * useful if your keyboard/keypad is missing keys and you want magic key support.
  68. *
  69. */
  70. #define RGB_DI_PIN F0
  71. #ifdef RGB_DI_PIN
  72. #define RGBLED_NUM 9
  73. #define RGBLIGHT_HUE_STEP 8
  74. #define RGBLIGHT_SAT_STEP 8
  75. #define RGBLIGHT_VAL_STEP 8
  76. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  77. #define RGBLIGHT_ANIMATIONS
  78. #endif
  79. /* There is only 1 Button so limiting VIA to 1 layer */
  80. #define DYNAMIC_KEYMAP_LAYER_COUNT 1