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.

109 lines
2.8 KiB

  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 TAPPING_FORCE_HOLD
  28. #define TAPPING_TERM 100
  29. #define USE_SERIAL
  30. /* Select hand configuration */
  31. #define MASTER_LEFT
  32. // #define MASTER_RIGHT
  33. // #define EE_HANDS
  34. /* key matrix size */
  35. // Rows are doubled-up
  36. #define MATRIX_ROWS 10
  37. #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2 }
  38. // wiring of each half
  39. #define MATRIX_COLS 7
  40. #define MATRIX_COL_PINS { B4, E6, D7, C6, D4, F5, F4 }
  41. /* define if matrix has ghost */
  42. //#define MATRIX_HAS_GHOST
  43. /* number of backlight levels */
  44. // #define BACKLIGHT_LEVELS 3
  45. /* Set 0 if debouncing isn't needed */
  46. #define DEBOUNCE 5
  47. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  48. //#define LOCKING_SUPPORT_ENABLE
  49. /* Locking resynchronize hack */
  50. //#define LOCKING_RESYNC_ENABLE
  51. /* ws2812 RGB LED */
  52. #define RGB_DI_PIN B6
  53. #define RGBLED_NUM 7
  54. #ifndef IOS_DEVICE_ENABLE
  55. #if RGBLED_NUM <= 7
  56. #define RGBLIGHT_LIMIT_VAL 255
  57. #define RGBLIGHT_VAL_STEP 17
  58. #endif
  59. #else
  60. #define RGBLIGHT_LIMIT_VAL 90
  61. #define RGBLIGHT_VAL_STEP 4
  62. #endif
  63. #define RGBLIGHT_HUE_STEP 10
  64. #define RGBLIGHT_SAT_STEP 17
  65. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  66. #define USB_MAX_POWER_CONSUMPTION 500
  67. #else
  68. // fix iPhone and iPad power adapter issue
  69. // iOS device need lessthan 100
  70. #define USB_MAX_POWER_CONSUMPTION 100
  71. #endif
  72. /*
  73. * Feature disable options
  74. * These options are also useful to firmware size reduction.
  75. */
  76. /* disable debug print */
  77. // #define NO_DEBUG
  78. /* disable print */
  79. // #define NO_PRINT
  80. /* disable action features */
  81. //#define NO_ACTION_LAYER
  82. //#define NO_ACTION_TAPPING
  83. //#define NO_ACTION_ONESHOT
  84. //#define NO_ACTION_MACRO
  85. //#define NO_ACTION_FUNCTION