config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. /* Set 0 if debouncing isn't needed */
  29. #define DEBOUNCE 5
  30. #ifdef IOS_DEVICE_ENABLE
  31. #define RGBLIGHT_LIMIT_VAL 40
  32. #elif RGBLIGHT_FULL_POWER
  33. #define RGBLIGHT_LIMIT_VAL 255
  34. #else
  35. #define RGBLIGHT_LIMIT_VAL 120
  36. #endif
  37. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL
  38. #define LED_HITS_TO_REMEMBER 5
  39. #define RGBLIGHT_ANIMATIONS
  40. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  41. // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
  42. // 120 RGBoff, OLEDoff
  43. // 120 OLED
  44. // 330 RGB 6
  45. // 300 RGB 32
  46. // 310 OLED & RGB 32
  47. #define USB_MAX_POWER_CONSUMPTION 500
  48. #else
  49. // fix iPhone and iPad power adapter issue
  50. // iOS device need lessthan 100
  51. #define USB_MAX_POWER_CONSUMPTION 100
  52. #endif
  53. /*
  54. * Feature disable options
  55. * These options are also useful to firmware size reduction.
  56. */
  57. /* disable debug print */
  58. // #define NO_DEBUG
  59. /* disable print */
  60. // #define NO_PRINT
  61. /* disable action features */
  62. //#define NO_ACTION_LAYER
  63. //#define NO_ACTION_TAPPING
  64. //#define NO_ACTION_ONESHOT
  65. //#define NO_ACTION_MACRO
  66. //#define NO_ACTION_FUNCTION