You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.5 KiB

  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 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. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0xFEED
  20. #define PRODUCT_ID 0x3060
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER tshort
  23. #define PRODUCT Dactyl-Manuform
  24. #define DESCRIPTION A split keyboard for the cheap makers
  25. /* key matrix size */
  26. // Rows are doubled-up
  27. #define MATRIX_ROWS 12
  28. #define MATRIX_COLS 6
  29. // wiring of each half
  30. #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 }
  31. #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 }
  32. /* define if matrix has ghost */
  33. //#define MATRIX_HAS_GHOST
  34. /* number of backlight levels */
  35. // #define BACKLIGHT_LEVELS 3
  36. /* mouse config */
  37. #define MOUSEKEY_INTERVAL 20
  38. #define MOUSEKEY_DELAY 0
  39. #define MOUSEKEY_TIME_TO_MAX 60
  40. #define MOUSEKEY_MAX_SPEED 7
  41. #define MOUSEKEY_WHEEL_DELAY 0
  42. /* Set 0 if debouncing isn't needed */
  43. #define DEBOUNCING_DELAY 5
  44. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  45. #define LOCKING_SUPPORT_ENABLE
  46. /* Locking resynchronize hack */
  47. #define LOCKING_RESYNC_ENABLE
  48. /* key combination for command */
  49. #define IS_COMMAND() ( \
  50. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  51. )
  52. /* Enables This makes it easier for fast typists to use dual-function keys */
  53. #define PERMISSIVE_HOLD
  54. /* ws2812 RGB LED */
  55. #define RGB_DI_PIN D3
  56. #define RGBLIGHT_TIMER
  57. #define RGBLED_NUM 12 // Number of LEDs
  58. #define ws2812_PORTREG PORTD
  59. #define ws2812_DDRREG DDRD
  60. /*
  61. * Feature disable options
  62. * These options are also useful to firmware size reduction.
  63. */
  64. /* disable debug print */
  65. // #define NO_DEBUG
  66. /* disable print */
  67. // #define NO_PRINT
  68. /* disable action features */
  69. //#define NO_ACTION_LAYER
  70. //#define NO_ACTION_TAPPING
  71. //#define NO_ACTION_ONESHOT
  72. //#define NO_ACTION_MACRO
  73. //#define NO_ACTION_FUNCTION
  74. #endif