config.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /*
  2. * Copyright 2017 skully <skullydazed@gmail.com>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef CONFIG_H
  18. #define CONFIG_H
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xC1ED
  21. #define PRODUCT_ID 0x2350
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER Clueboard
  24. #define PRODUCT Clueboard 60%
  25. #define DESCRIPTION Clueboard 60%
  26. /* key matrix size */
  27. #define MATRIX_ROWS 5
  28. #define MATRIX_COLS 15
  29. /*
  30. * Keyboard Matrix Assignments
  31. *
  32. * Change this to how you wired your keyboard
  33. * COLS: AVR pins used for columns, left to right
  34. * ROWS: AVR pins used for rows, top to bottom
  35. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  36. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  37. *
  38. */
  39. /* Note: These are not used for arm boards. They're here purely as documentation.
  40. * #define MATRIX_ROW_PINS { PB0, PB1, PB2, PA15, PA10 }
  41. * #define MATRIX_COL_PINS { PA2, PA3, PA6, PB14, PB15, PA8, PA9, PA7, PB3, PB4, PC14, PC15, PC13, PB5, PB6 }
  42. * #define UNUSED_PINS
  43. */
  44. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  45. #define DEBOUNCE 6
  46. /* Prevent modifiers from being stuck on after layer changes. */
  47. #define PREVENT_STUCK_MODIFIERS
  48. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  49. //#define LOCKING_SUPPORT_ENABLE
  50. /* Locking resynchronize hack */
  51. //#define LOCKING_RESYNC_ENABLE
  52. /*
  53. * Force NKRO
  54. *
  55. * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
  56. * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
  57. * makefile for this to work.)
  58. *
  59. * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
  60. * until the next keyboard reset.
  61. *
  62. * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
  63. * fully operational during normal computer usage.
  64. *
  65. * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
  66. * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
  67. * bootmagic, NKRO mode will always be enabled until it is toggled again during a
  68. * power-up.
  69. *
  70. */
  71. //#define FORCE_NKRO
  72. /* key combination for magic key command */
  73. #define IS_COMMAND() ( \
  74. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  75. )
  76. /*
  77. * Feature disable options
  78. * These options are also useful to firmware size reduction.
  79. */
  80. /* disable debug print */
  81. //#define NO_DEBUG
  82. /* disable print */
  83. //#define NO_PRINT
  84. /* disable action features */
  85. //#define NO_ACTION_LAYER
  86. //#define NO_ACTION_TAPPING
  87. //#define NO_ACTION_ONESHOT
  88. //#define NO_ACTION_MACRO
  89. //#define NO_ACTION_FUNCTION
  90. /*
  91. * MIDI options
  92. */
  93. /* Prevent use of disabled MIDI features in the keymap */
  94. //#define MIDI_ENABLE_STRICT 1
  95. /* enable basic MIDI features:
  96. - MIDI notes can be sent when in Music mode is on
  97. */
  98. //#define MIDI_BASIC
  99. /* enable advanced MIDI features:
  100. - MIDI notes can be added to the keymap
  101. - Octave shift and transpose
  102. - Virtual sustain, portamento, and modulation wheel
  103. - etc.
  104. */
  105. //#define MIDI_ADVANCED
  106. /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
  107. //#define MIDI_TONE_KEYCODE_OCTAVES 1
  108. #endif
  109. /* Backlight configuration
  110. */
  111. #define BACKLIGHT_LEVELS 1