logo

qmk_firmware

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

config.h (2005B)


  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 OLED_UPDATE_INTERVAL 50
  19. // Helix keyboard RGB LED support
  20. // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
  21. #ifdef RGBLED_BACK
  22. #define RGBLIGHT_LED_COUNT 32
  23. #else
  24. #define RGBLIGHT_LED_COUNT 6
  25. #endif
  26. #ifndef IOS_DEVICE_ENABLE
  27. #if RGBLIGHT_LED_COUNT <= 6
  28. #define RGBLIGHT_LIMIT_VAL 255
  29. #else
  30. #define RGBLIGHT_LIMIT_VAL 120
  31. #endif
  32. #define RGBLIGHT_VAL_STEP 17
  33. #else
  34. #if RGBLIGHT_LED_COUNT <= 6
  35. #define RGBLIGHT_LIMIT_VAL 90
  36. #else
  37. #define RGBLIGHT_LIMIT_VAL 35
  38. #endif
  39. #define RGBLIGHT_VAL_STEP 4
  40. #endif
  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 400
  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