config.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef ERGODOX_ERGODONE_CONFIG_H
  2. #define ERGODOX_ERGODONE_CONFIG_H
  3. #include "config_common.h"
  4. /* USB Device descriptor parameter */
  5. #define VENDOR_ID 0xFEED
  6. #define PRODUCT_ID 0x1307
  7. #define DEVICE_VER 0x0001
  8. #define MANUFACTURER ErgoDone
  9. #define PRODUCT ErgoDone
  10. #define DESCRIPTION QMK keyboard firmware for ErgoDone
  11. /* key matrix size */
  12. #define MATRIX_ROWS 6
  13. #define MATRIX_COLS 14
  14. #define MOUSEKEY_INTERVAL 20
  15. #define MOUSEKEY_DELAY 0
  16. #define MOUSEKEY_TIME_TO_MAX 60
  17. #define MOUSEKEY_MAX_SPEED 7
  18. #define MOUSEKEY_WHEEL_DELAY 0
  19. #define TAPPING_TOGGLE 1
  20. /* define if matrix has ghost */
  21. //#define MATRIX_HAS_GHOST
  22. #define TAPPING_TERM 200
  23. #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.)
  24. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  25. #define LOCKING_SUPPORT_ENABLE
  26. /* Locking resynchronize hack */
  27. #define LOCKING_RESYNC_ENABLE
  28. /* key combination for command */
  29. #define IS_COMMAND() ( \
  30. keyboard_report->mods == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  31. keyboard_report->mods == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  32. )
  33. /* number of backlight levels */
  34. #define BACKLIGHT_LEVELS 3
  35. #define LED_BRIGHTNESS_LO 15
  36. #define LED_BRIGHTNESS_HI 255
  37. /* fix space cadet rollover issue */
  38. #define DISABLE_SPACE_CADET_ROLLOVER
  39. /* Set 0 if debouncing isn't needed */
  40. #define DEBOUNCE 5
  41. #define PREVENT_STUCK_MODIFIERS
  42. #define USB_MAX_POWER_CONSUMPTION 500
  43. /*
  44. * Feature disable options
  45. * These options are also useful to firmware size reduction.
  46. */
  47. /* disable debug print */
  48. // #define NO_DEBUG
  49. /* disable print */
  50. // #define NO_PRINT
  51. /* disable action features */
  52. //#define NO_ACTION_LAYER
  53. //#define NO_ACTION_TAPPING
  54. //#define NO_ACTION_ONESHOT
  55. //#define NO_ACTION_MACRO
  56. //#define NO_ACTION_FUNCTION
  57. //#define DEBUG_MATRIX_SCAN_RATE
  58. #endif