config.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. Copyright 2018 Takuya Urakawa<twitter:@hsgw>
  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. #include <serial_config.h>
  19. /* USB Device descriptor parameter
  20. VID & PID are lisenced from microchip sublisence program, Don't use other project! */
  21. #define VENDOR_ID 0x04D8
  22. #define PRODUCT_ID 0xEE60
  23. #define DEVICE_VER 0x0001
  24. #define MANUFACTURER Dm9Records
  25. #define PRODUCT ergoinu
  26. #define DESCRIPTION An (Not Portable But Small) Ergonomic split keyboard
  27. #define PREVENT_STUCK_MODIFIERS
  28. #define TAPPING_FORCE_HOLD
  29. #define TAPPING_TERM 100
  30. #define USE_SERIAL
  31. /* Select hand configuration */
  32. #define MASTER_LEFT
  33. // #define MASTER_RIGHT
  34. // #define EE_HANDS
  35. /* key matrix size */
  36. // Rows are doubled-up
  37. #define MATRIX_ROWS 10
  38. #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2 }
  39. // wiring of each half
  40. #define MATRIX_COLS 7
  41. #define MATRIX_COL_PINS { B4, E6, D7, C6, D4, F5, F4 }
  42. /* define if matrix has ghost */
  43. //#define MATRIX_HAS_GHOST
  44. /* number of backlight levels */
  45. // #define BACKLIGHT_LEVELS 3
  46. /* Set 0 if debouncing isn't needed */
  47. #define DEBOUNCING_DELAY 5
  48. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  49. //#define LOCKING_SUPPORT_ENABLE
  50. /* Locking resynchronize hack */
  51. //#define LOCKING_RESYNC_ENABLE
  52. /* key combination for command */
  53. #define IS_COMMAND() ( \
  54. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
  55. )
  56. /* ws2812 RGB LED */
  57. #define RGB_DI_PIN B6
  58. #define RGBLED_NUM 7
  59. #ifndef IOS_DEVICE_ENABLE
  60. #if RGBLED_NUM <= 7
  61. #define RGBLIGHT_LIMIT_VAL 255
  62. #define RGBLIGHT_VAL_STEP 17
  63. #endif
  64. #else
  65. #define RGBLIGHT_LIMIT_VAL 90
  66. #define RGBLIGHT_VAL_STEP 4
  67. #endif
  68. #define RGBLIGHT_HUE_STEP 10
  69. #define RGBLIGHT_SAT_STEP 17
  70. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  71. #define USB_MAX_POWER_CONSUMPTION 500
  72. #else
  73. // fix iPhone and iPad power adapter issue
  74. // iOS device need lessthan 100
  75. #define USB_MAX_POWER_CONSUMPTION 100
  76. #endif
  77. /*
  78. * Feature disable options
  79. * These options are also useful to firmware size reduction.
  80. */
  81. /* disable debug print */
  82. // #define NO_DEBUG
  83. /* disable print */
  84. // #define NO_PRINT
  85. /* disable action features */
  86. //#define NO_ACTION_LAYER
  87. //#define NO_ACTION_TAPPING
  88. //#define NO_ACTION_ONESHOT
  89. //#define NO_ACTION_MACRO
  90. //#define NO_ACTION_FUNCTION