logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

config.h (2538B)


  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. Copyright 2018 MakotoKurauchi
  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. #pragma once
  17. #define QUICK_TAP_TERM 0
  18. #define SERIAL_SLAVE_BUFFER_LENGTH ((MATRIX_ROWS)/2)
  19. #define SERIAL_MASTER_BUFFER_LENGTH ((MATRIX_ROWS)/2)
  20. /* key matrix size */
  21. // Rows are doubled-up
  22. #define MATRIX_ROWS 8
  23. #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
  24. // wiring of each half
  25. #define MATRIX_COLS 7
  26. #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
  27. // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
  28. /* COL2ROW, ROW2COL*/
  29. #define DIODE_DIRECTION COL2ROW
  30. /* Audio */
  31. #ifdef AUDIO_ENABLE
  32. #define AUDIO_PIN B5
  33. #endif
  34. // Helix keyboard RGB LED support
  35. // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
  36. #ifdef RGBLED_BACK
  37. #define RGBLIGHT_LED_COUNT 25
  38. #else
  39. #define RGBLIGHT_LED_COUNT 6
  40. #endif
  41. #ifndef IOS_DEVICE_ENABLE
  42. #if RGBLIGHT_LED_COUNT <= 6
  43. #define RGBLIGHT_LIMIT_VAL 255
  44. #else
  45. #define RGBLIGHT_LIMIT_VAL 130
  46. #endif
  47. #define RGBLIGHT_VAL_STEP 17
  48. #else
  49. #if RGBLIGHT_LED_COUNT <= 6
  50. #define RGBLIGHT_LIMIT_VAL 90
  51. #else
  52. #define RGBLIGHT_LIMIT_VAL 45
  53. #endif
  54. #define RGBLIGHT_VAL_STEP 4
  55. #endif
  56. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  57. // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
  58. // 120 RGBoff
  59. // 330 RGB 6
  60. // 300 RGB 32
  61. // 310 OLED & RGB 32
  62. #define USB_MAX_POWER_CONSUMPTION 400
  63. #else
  64. // fix iPhone and iPad power adapter issue
  65. // iOS device need lessthan 100
  66. #define USB_MAX_POWER_CONSUMPTION 100
  67. #endif
  68. /*
  69. * Feature disable options
  70. * These options are also useful to firmware size reduction.
  71. */
  72. /* disable debug print */
  73. // #define NO_DEBUG
  74. /* disable print */
  75. // #define NO_PRINT
  76. /* disable action features */
  77. //#define NO_ACTION_LAYER
  78. //#define NO_ACTION_TAPPING
  79. //#define NO_ACTION_ONESHOT