config.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_USER_H
  15. #define CONFIG_USER_H
  16. #include "config_common.h"
  17. /* key matrix size */
  18. #define MATRIX_ROWS 4
  19. #define MATRIX_COLS 12
  20. /* Planck PCB default pin-out */
  21. #define MATRIX_ROW_PINS { D0, D5, B5, B6 }
  22. #define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
  23. #define UNUSED_PINS
  24. /* COL2ROW or ROW2COL */
  25. #define DIODE_DIRECTION COL2ROW
  26. /* define if matrix has ghost */
  27. //#define MATRIX_HAS_GHOST
  28. /* number of backlight levels */
  29. #define BACKLIGHT_LEVELS 3
  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. /* key combination for command */
  37. #define IS_COMMAND() ( \
  38. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  39. )
  40. #define BACKLIGHT_PIN B7
  41. #define BACKLIGHT_BREATHING
  42. /*
  43. * Feature disable options
  44. * These options are also useful to firmware size reduction.
  45. */
  46. /* disable debug print */
  47. #ifndef NO_DEBUG
  48. # define NO_DEBUG
  49. #endif
  50. /* disable print */
  51. // #ifndef NO_PRINT
  52. // # define NO_PRINT
  53. // #endif
  54. /* Only print user print statements */
  55. #define USER_PRINT
  56. /* disable action features */
  57. //#define NO_ACTION_LAYER
  58. //#define NO_ACTION_TAPPING
  59. //#define NO_ACTION_ONESHOT
  60. //#define NO_ACTION_MACRO
  61. //#define NO_ACTION_FUNCTION
  62. #endif