2
0

config.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. 2017 Jack Humbert
  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. 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. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #ifndef CONFIG_H
  16. #define CONFIG_H
  17. #include "config_common.h"
  18. #define VENDOR_ID 0x1234
  19. #define PRODUCT_ID 0x5678
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER Example Company
  22. #define PRODUCT Example Keyboard
  23. #define DESCRIPTION A short description
  24. #define MATRIX_ROWS 2
  25. #define MATRIX_COLS 2
  26. #define MATRIX_ROW_PINS { F0, F5 }
  27. #define MATRIX_COL_PINS { F1, F7 }
  28. #define UNUSED_PINS
  29. #define MATRIX_HAS_GHOST // define is matrix has ghost (unlikely)
  30. #define DIODE_DIRECTION COL2ROW // COL2ROW or ROW2COL - how your matrix is configured
  31. // COL2ROW means the black mark on your diode is facing to the rows, and between the switch and the rows
  32. // #define AUDIO_VOICES // turns on the alternate audio voices (to cycle through)
  33. // #define C6_AUDIO // enables audio on pin C6
  34. // #define B5_AUDIO // enables audio on pin B5 (duophony is enable if both are enabled)
  35. #define BACKLIGHT_PIN B7 // pin of the backlight - B5, B6, B7 use PWM, others use softPWM
  36. #define BACKLIGHT_LEVELS 3 // number of levels your backlight will have (not including off)
  37. #define DEBOUNCING_DELAY 5 // the delay when reading the value of the pin (5 is default)
  38. // #define LOCKING_SUPPORT_ENABLE // mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
  39. // #define LOCKING_RESYNC_ENABLE // tries to keep switch state consistent with keyboard LED state
  40. // key combination that allows the use of magic commands (useful for debugging)
  41. #define IS_COMMAND() ( \
  42. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  43. )
  44. // the following options can save on file size at the expense of that feature
  45. // #define NO_DEBUG // disable debuging (saves on file size)
  46. // #define NO_PRINT // disable printing (saves of file size)
  47. // #define NO_ACTION_LAYER // no layers
  48. // #define NO_ACTION_TAPPING // no tapping for layers/mods
  49. // #define NO_ACTION_ONESHOT // no oneshot for layers/mods
  50. // #define NO_ACTION_MACRO // no macros
  51. // #define NO_ACTION_FUNCTION // no functions
  52. // #define FORCE_NKRO // NKRO by default requires to be turned on, this forces it to be on always
  53. // #define PREVENT_STUCK_MODIFIERS // when switching layers, this will release all mods
  54. // #define TAPPING_TERM 200 // how long before a tap becomes a hold
  55. // #define TAPPING_TOGGLE 2 // how many taps before triggering the toggle
  56. // #define PERMISSIVE_HOLD // makes tap and hold keys work better for fast typers who don't want tapping term set above 500
  57. // #define LEADER_TIMEOUT 300 // how long before the leader key times out
  58. // #define ONESHOT_TIMEOUT 300 // how long before oneshot times out
  59. // #define ONESHOT_TAP_TOGGLE 2 // how many taps before oneshot toggle is triggered
  60. // #define IGNORE_MOD_TAP_INTERRUPT // makes it possible to do rolling combos (zx) with keys that convert to other keys on hold
  61. // ws2812 options
  62. // #define RGB_DI_PIN D7 // pin the DI on the ws2812 is hooked-up to
  63. // #define RGBLIGHT_ANIMATIONS // run RGB animations
  64. // #define RGBLED_NUM 15 // number of LEDs
  65. // #define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue
  66. // #define RGBLIGHT_SAT_STEP 25 // units to step when in/decresing saturation
  67. // #define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness)
  68. // #define RGBW_BB_TWI // bit-bangs twi to EZ RGBW LEDs (only required for Ergodox EZ)
  69. // mousekey options (self-describing)
  70. // #define MOUSEKEY_INTERVAL 20
  71. // #define MOUSEKEY_DELAY 0
  72. // #define MOUSEKEY_TIME_TO_MAX 60
  73. // #define MOUSEKEY_MAX_SPEED 7
  74. // #define MOUSEKEY_WHEEL_DELAY 0
  75. #endif