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.

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