qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

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 
      6 This program is free software: you can redistribute it and/or modify
      7 it under the terms of the GNU General Public License as published by
      8 the Free Software Foundation, either version 2 of the License, or
      9 (at your option) any later version.
     10 
     11 This program is distributed in the hope that it will be useful,
     12 but WITHOUT ANY WARRANTY; without even the implied warranty of
     13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14 GNU General Public License for more details.
     15 
     16 You should have received a copy of the GNU General Public License
     17 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     18 */
     19 
     20 #pragma once
     21 
     22 #ifndef IOS_DEVICE_ENABLE
     23   #if RGBLIGHT_LED_COUNT <= 7
     24     #define RGBLIGHT_LIMIT_VAL 255
     25     #define RGBLIGHT_VAL_STEP 17
     26   #endif
     27 #else
     28   #define RGBLIGHT_LIMIT_VAL 90
     29   #define RGBLIGHT_VAL_STEP 4
     30 #endif
     31 
     32 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
     33   #define USB_MAX_POWER_CONSUMPTION 500
     34 #else
     35   // fix iPhone and iPad power adapter issue
     36   // iOS device need lessthan 100
     37   #define USB_MAX_POWER_CONSUMPTION 100
     38 #endif
     39 
     40 /*
     41  * Feature disable options
     42  *  These options are also useful to firmware size reduction.
     43  */
     44 
     45 /* disable debug print */
     46 // #define NO_DEBUG
     47 
     48 /* disable print */
     49 // #define NO_PRINT
     50 
     51 /* disable action features */
     52 //#define NO_ACTION_LAYER
     53 //#define NO_ACTION_TAPPING
     54 //#define NO_ACTION_ONESHOT