qmk_firmware

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

config.h (1839B)


      1 /*
      2 Copyright 2012 Jun Wako <wakojun@gmail.com>
      3 Copyright 2015 Jack Humbert
      4 
      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 
     10 This program is distributed in the hope that it will be useful,
     11 but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 GNU General Public License for more details.
     14 
     15 You should have received a copy of the GNU General Public License
     16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 */
     18 
     19 #pragma once
     20 
     21 /* Select hand configuration */
     22 #define EE_HANDS
     23 
     24 #ifndef RGBLIGHT_SPLIT_ENABLE
     25     #define RGBLIGHT_LED_COUNT 30
     26 #else
     27     #define RGBLIGHT_LED_COUNT 60
     28 #endif
     29 
     30 #ifdef IOS_DEVICE_ENABLE
     31   #define RGBLIGHT_LIMIT_VAL 40
     32   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 40
     33 #elif RGBLIGHT_FULL_POWER
     34   #define RGBLIGHT_LIMIT_VAL 255
     35   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
     36 #else
     37   #define RGBLIGHT_LIMIT_VAL 120
     38   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150
     39 #endif
     40 
     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 500
     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 /*
     56  * Feature disable options
     57  *  These options are also useful to firmware size reduction.
     58  */
     59 
     60 /* disable debug print */
     61 // #define NO_DEBUG
     62 
     63 /* disable print */
     64 // #define NO_PRINT
     65 
     66 /* disable action features */
     67 //#define NO_ACTION_LAYER
     68 //#define NO_ACTION_TAPPING
     69 //#define NO_ACTION_ONESHOT