logo

qmk_firmware

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

config.h (1490B)


  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2015 Jack Humbert
  4. Copyright 2018 Takuya Urakawa<twitter:@hsgw>
  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. #ifndef IOS_DEVICE_ENABLE
  18. #if RGBLIGHT_LED_COUNT <= 7
  19. #define RGBLIGHT_LIMIT_VAL 255
  20. #define RGBLIGHT_VAL_STEP 17
  21. #endif
  22. #else
  23. #define RGBLIGHT_LIMIT_VAL 90
  24. #define RGBLIGHT_VAL_STEP 4
  25. #endif
  26. #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
  27. #define USB_MAX_POWER_CONSUMPTION 500
  28. #else
  29. // fix iPhone and iPad power adapter issue
  30. // iOS device need lessthan 100
  31. #define USB_MAX_POWER_CONSUMPTION 100
  32. #endif
  33. /*
  34. * Feature disable options
  35. * These options are also useful to firmware size reduction.
  36. */
  37. /* disable debug print */
  38. // #define NO_DEBUG
  39. /* disable print */
  40. // #define NO_PRINT
  41. /* disable action features */
  42. //#define NO_ACTION_LAYER
  43. //#define NO_ACTION_TAPPING
  44. //#define NO_ACTION_ONESHOT