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.

86 lines
2.1 KiB

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