config.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. #pragma once
  16. #include "config_common.h"
  17. #define TAPPING_TERM 150
  18. /* Select hand configuration */
  19. #define SOFT_SERIAL_PIN D3
  20. #define EE_HANDS
  21. /* key matrix size */
  22. // Rows are doubled-up
  23. #define MATRIX_ROWS 12
  24. #define MATRIX_ROW_PINS { C6, B6, B5, B4, D7, E6}
  25. // wiring of each half
  26. #define MATRIX_COLS 7
  27. #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7 }
  28. // Encoder support
  29. #define ENCODERS_PAD_A { D2 }
  30. #define ENCODERS_PAD_B { D6 }
  31. /* Set 0 if debouncing isn't needed */
  32. #define DEBOUNCE 5
  33. /* ws2812 RGB LED */
  34. #define RGB_DI_PIN B3
  35. #ifdef IOS_DEVICE_ENABLE
  36. #define RGBLIGHT_LIMIT_VAL 40
  37. #elif RGBLIGHT_FULL_POWER
  38. #define RGBLIGHT_LIMIT_VAL 255
  39. #else
  40. #define RGBLIGHT_LIMIT_VAL 120
  41. #endif
  42. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
  43. #define LED_HITS_TO_REMEMBER 5
  44. #define RGBLIGHT_ANIMATIONS
  45. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  46. // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
  47. // 120 RGBoff, OLEDoff
  48. // 120 OLED
  49. // 330 RGB 6
  50. // 300 RGB 32
  51. // 310 OLED & RGB 32
  52. #define USB_MAX_POWER_CONSUMPTION 500
  53. #else
  54. // fix iPhone and iPad power adapter issue
  55. // iOS device need lessthan 100
  56. #define USB_MAX_POWER_CONSUMPTION 100
  57. #endif
  58. /*
  59. * Feature disable options
  60. * These options are also useful to firmware size reduction.
  61. */
  62. /* disable debug print */
  63. // #define NO_DEBUG
  64. /* disable print */
  65. // #define NO_PRINT
  66. /* disable action features */
  67. //#define NO_ACTION_LAYER
  68. //#define NO_ACTION_TAPPING
  69. //#define NO_ACTION_ONESHOT
  70. //#define NO_ACTION_MACRO
  71. //#define NO_ACTION_FUNCTION