config.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
  4. Copyright 2017 Erin Call <hello@erincall.com>
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 2 of the License, or
  8. (at your option) any later version.
  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. 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 DACTYL_CONFIG_H
  17. #define DACTYL_CONFIG_H
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x1308
  22. #define DEVICE_VER 0x0001
  23. #define MANUFACTURER Adereth
  24. #define PRODUCT Dactyl
  25. #define DESCRIPTION An ortholinear, split, 3D-curved keyboard with thumb clusters.
  26. #define DIODE_DIRECTION ROW2COL
  27. #define MATRIX_ROWS 6
  28. #define MATRIX_COLS 12
  29. #define COL_EXPANDED { true, true, true, true, true, true, false, false, false, false, false, false}
  30. #define MATRIX_ONBOARD_ROW_PINS { F0, F1, F4, F5, F6, F7 }
  31. #define MATRIX_ONBOARD_COL_PINS { 0, 0, 0, 0, 0, 0, B1, B2, B3, D2, D3, C6 }
  32. #define EXPANDER_COL_REGISTER 0
  33. #define MATRIX_EXPANDER_COL_PINS {0, 1, 2, 3, 4, 5}
  34. #define MATRIX_EXPANDER_ROW_PINS {0, 1, 2, 3, 4, 5}
  35. #define MOUSEKEY_INTERVAL 20
  36. #define MOUSEKEY_DELAY 0
  37. #define MOUSEKEY_TIME_TO_MAX 60
  38. #define MOUSEKEY_MAX_SPEED 7
  39. #define MOUSEKEY_WHEEL_DELAY 0
  40. #define TAPPING_TOGGLE 1
  41. #define TAPPING_TERM 200
  42. #define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
  43. /* key combination for command */
  44. #define IS_COMMAND() ( \
  45. keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  46. keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  47. )
  48. /* fix space cadet rollover issue */
  49. #define DISABLE_SPACE_CADET_ROLLOVER
  50. /* Set 0 if debouncing isn't needed */
  51. #define DEBOUNCE 15
  52. #define USB_MAX_POWER_CONSUMPTION 500
  53. #endif