config.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. #ifndef CONFIG_H
  15. #define CONFIG_H
  16. #include "config_common.h"
  17. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0xFEED
  19. #define PRODUCT_ID 0x6060
  20. #define MANUFACTURER Ortholinear Keyboards
  21. #define PRODUCT The Planck Keyboard
  22. #define DESCRIPTION A compact ortholinear keyboard
  23. /* key matrix size */
  24. #define MATRIX_ROWS 4
  25. #define MATRIX_COLS 12
  26. /* Planck PCB default pin-out */
  27. #define MATRIX_ROW_PINS { D0, D5, B5, B6 }
  28. #define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
  29. #define UNUSED_PINS
  30. #define BACKLIGHT_PIN B7
  31. /* COL2ROW or ROW2COL */
  32. #define DIODE_DIRECTION COL2ROW
  33. /* define if matrix has ghost */
  34. //#define MATRIX_HAS_GHOST
  35. //#define BACKLIGHT_BREATHING // LED breathing
  36. /* number of backlight levels */
  37. #define BACKLIGHT_LEVELS 5
  38. /* Set 0 if debouncing isn't needed */
  39. #define DEBOUNCING_DELAY 5
  40. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  41. //#define LOCKING_SUPPORT_ENABLE
  42. #undef LOCKING_SUPPORT_ENABLE
  43. /* Locking resynchronize hack */
  44. //#define LOCKING_RESYNC_ENABLE
  45. #undef LOCKING_RESYNC_ENABLE
  46. /* key combination for command */
  47. #define IS_COMMAND() ( \
  48. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  49. )
  50. /*
  51. * Feature disable options
  52. * These options are also useful to firmware size reduction.
  53. */
  54. /* disable debug print */
  55. //#define NO_DEBUG
  56. /* disable print */
  57. //#define NO_PRINT
  58. #undef NO_PRINT
  59. /* disable action features */
  60. //#define NO_ACTION_LAYER
  61. #define NO_ACTION_TAPPING
  62. //#define NO_ACTION_ONESHOT
  63. #define NO_ACTION_MACRO
  64. #define NO_ACTION_FUNCTION
  65. #define PREVENT_STUCK_MODIFIERS
  66. //#define DYNAMIC_MACRO_ENABLE // Enable if you need to use the macro functionality
  67. //#define SPACE_CADET // Parenthesis on L/R shift
  68. #ifdef SUBPROJECT_rev3
  69. #include "rev3/config.h"
  70. #endif
  71. #ifdef SUBPROJECT_rev4
  72. #include "rev4/config.h"
  73. #endif
  74. #endif