config.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xFEED
  20. #define PRODUCT_ID 0x1308
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Adereth
  23. #define PRODUCT Dactyl
  24. #define DESCRIPTION An ortholinear, split, 3D-curved keyboard with thumb clusters.
  25. #define DIODE_DIRECTION ROW2COL
  26. #define MATRIX_ROWS 6
  27. #define MATRIX_COLS 12
  28. #define COL_EXPANDED { true, true, true, true, true, true, false, false, false, false, false, false}
  29. #define MATRIX_ONBOARD_ROW_PINS { F0, F1, F4, F5, F6, F7 }
  30. #define MATRIX_ONBOARD_COL_PINS { 0, 0, 0, 0, 0, 0, B1, B2, B3, D2, D3, C6 }
  31. #define EXPANDER_COL_REGISTER 0
  32. #define MATRIX_EXPANDER_COL_PINS {0, 1, 2, 3, 4, 5}
  33. #define MATRIX_EXPANDER_ROW_PINS {0, 1, 2, 3, 4, 5}
  34. #define MOUSEKEY_INTERVAL 20
  35. #define MOUSEKEY_DELAY 0
  36. #define MOUSEKEY_TIME_TO_MAX 60
  37. #define MOUSEKEY_MAX_SPEED 7
  38. #define MOUSEKEY_WHEEL_DELAY 0
  39. #define TAPPING_TOGGLE 1
  40. #define TAPPING_TERM 200
  41. #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.)
  42. /* key combination for command */
  43. #define IS_COMMAND() ( \
  44. keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  45. keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  46. )
  47. /* fix space cadet rollover issue */
  48. #define DISABLE_SPACE_CADET_ROLLOVER
  49. /* Set 0 if debouncing isn't needed */
  50. #define DEBOUNCE 15
  51. #define PREVENT_STUCK_MODIFIERS
  52. #define USB_MAX_POWER_CONSUMPTION 500