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.

115 lines
3.4 KiB

  1. /* Copyright 2018 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. #ifndef CONFIG_H
  17. #define CONFIG_H
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x0000
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER Yiancar/CapsUnlocked
  24. #define PRODUCT CU24
  25. /* key matrix size */
  26. #define MATRIX_ROWS 6
  27. #define MATRIX_COLS 4
  28. /*
  29. * Keyboard Matrix Assignments
  30. *
  31. * Change this to how you wired your keyboard
  32. * COLS: AVR pins used for columns, left to right
  33. * ROWS: AVR pins used for rows, top to bottom
  34. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  35. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  36. *
  37. */
  38. #define MATRIX_ROW_PINS { E6, F5, B4, B6, C6, C7 }
  39. #define MATRIX_COL_PINS { F0, F1, D0, D1 }
  40. #define UNUSED_PINS
  41. /* COL2ROW, ROW2COL*/
  42. #define DIODE_DIRECTION ROW2COL
  43. /* Backlight */
  44. #define BACKLIGHT_PIN B5
  45. #define BACKLIGHT_BREATHING
  46. #define BACKLIGHT_LEVELS 5
  47. /* RGB Glow */
  48. #define RGB_DI_PIN F4 // The pin the LED strip is connected to
  49. #define RGBLED_NUM 5 // Number of LEDs in your strip
  50. #define RGBLIGHT_ANIMATIONS
  51. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  52. #define DEBOUNCE 5
  53. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  54. //#define MATRIX_HAS_GHOST
  55. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  56. #define LOCKING_SUPPORT_ENABLE
  57. /* Locking resynchronize hack */
  58. #define LOCKING_RESYNC_ENABLE
  59. /* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
  60. * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
  61. */
  62. // #define GRAVE_ESC_CTRL_OVERRIDE
  63. /*
  64. * Force NKRO
  65. *
  66. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  67. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  68. * makefile for this to work.)
  69. *
  70. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  71. * until the next keyboard reset.
  72. *
  73. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  74. * fully operational during normal computer usage.
  75. *
  76. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  77. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  78. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  79. * power-up.
  80. *
  81. */
  82. //#define FORCE_NKRO
  83. /*
  84. * Feature disable options
  85. * These options are also useful to firmware size reduction.
  86. */
  87. /* disable debug print */
  88. //#define NO_DEBUG
  89. /* disable print */
  90. //#define NO_PRINT
  91. /* disable action features */
  92. //#define NO_ACTION_LAYER
  93. //#define NO_ACTION_TAPPING
  94. //#define NO_ACTION_ONESHOT
  95. //#define NO_ACTION_MACRO
  96. //#define NO_ACTION_FUNCTION
  97. #endif