qmk_firmware

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

config.h (1784B)


      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 #define EE_HANDS
     22 
     23 #ifdef IOS_DEVICE_ENABLE
     24   #define RGBLIGHT_LIMIT_VAL 40
     25   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 40
     26 #elif RGBLIGHT_FULL_POWER
     27   #define RGBLIGHT_LIMIT_VAL 255
     28   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255
     29 #else
     30   #define RGBLIGHT_LIMIT_VAL 120
     31   #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120
     32 #endif
     33 
     34 #define LED_HITS_TO_REMEMBER 5
     35 
     36 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
     37 // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
     38 //  120  RGBoff, OLEDoff
     39 //  120  OLED
     40 //  330  RGB 6
     41 //  300  RGB 32
     42 //  310  OLED & RGB 32
     43   #define USB_MAX_POWER_CONSUMPTION 500
     44 #else
     45   // fix iPhone and iPad power adapter issue
     46   // iOS device need lessthan 100
     47   #define USB_MAX_POWER_CONSUMPTION 100
     48 #endif
     49 
     50 /*
     51  * Feature disable options
     52  *  These options are also useful to firmware size reduction.
     53  */
     54 
     55 /* disable debug print */
     56 // #define NO_DEBUG
     57 
     58 /* disable print */
     59 // #define NO_PRINT
     60 
     61 /* disable action features */
     62 //#define NO_ACTION_LAYER
     63 //#define NO_ACTION_TAPPING
     64 //#define NO_ACTION_ONESHOT
     65 
     66 #define OLED_FONT_H "keyboards/rgbkb/common/glcdfont.c"