config.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /*
  2. This is the c configuration file for the keymap
  3. Copyright 2012 Jun Wako <wakojun@gmail.com>
  4. Copyright 2015 Jack Humbert
  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. #ifndef CONFIG_USER_H
  17. #define CONFIG_USER_H
  18. #include "../../config.h"
  19. /* Use I2C or Serial */
  20. #define USE_I2C
  21. #define USE_SERIAL
  22. //#define USE_MATRIX_I2C
  23. /* Select hand configuration */
  24. #define MASTER_LEFT
  25. // #define MASTER_RIGHT
  26. // #define EE_HANDS
  27. // Helix keyboard OLED support
  28. //#define SSD1306OLED
  29. /* Select rows configuration */
  30. // Rows are 4 or 5
  31. #define HELIX_ROWS 5
  32. /* key matrix size */
  33. // Rows are doubled-up
  34. #if HELIX_ROWS == 4
  35. #define MATRIX_ROWS 8
  36. #define MATRIX_COLS 7
  37. #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
  38. #elif HELIX_ROWS == 5
  39. #define MATRIX_ROWS 10
  40. #define MATRIX_COLS 7
  41. #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
  42. #else
  43. #error "expected HELIX_ROWS 4 or 5"
  44. #endif
  45. #define USE_SERIAL_PD2
  46. #define PREVENT_STUCK_MODIFIERS
  47. #define TAPPING_FORCE_HOLD
  48. #define TAPPING_TERM 100
  49. #undef RGBLED_NUM
  50. #define RGBLIGHT_ANIMATIONS
  51. // Helix keyboard : see ./rules.mk: RGBLIGHT_ENABLE = yes or no
  52. // Helix keyboard : RGBLED_NUM 6 or 32
  53. #define RGBLED_NUM 6
  54. #if RGBLED_NUM <= 6
  55. #define RGBLIGHT_LIMIT_VAL 255
  56. #else
  57. #if HELIX_ROWS == 5
  58. #define RGBLIGHT_LIMIT_VAL 120
  59. #else
  60. #define RGBLIGHT_LIMIT_VAL 130
  61. #endif
  62. #endif
  63. #define RGBLIGHT_HUE_STEP 10
  64. #define RGBLIGHT_SAT_STEP 17
  65. #define RGBLIGHT_VAL_STEP 17
  66. #endif
  67. #ifdef RGBLIGHT_ENABLE
  68. // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
  69. // 120 RGBoff, OLEDoff
  70. // 120 OLED
  71. // 330 RGB 6
  72. // 300 RGB 32
  73. // 310 OLED & RGB 32
  74. #define USB_MAX_POWER_CONSUMPTION 330
  75. #else
  76. // fix iPhone and iPad power adapter issue
  77. // iOS device need lessthan 100
  78. #define USB_MAX_POWER_CONSUMPTION 100
  79. #endif