qmk

QMK Firmware
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

config.h (2103B)


      1 /*
      2 This is the c configuration file for the keymap
      3 
      4 Copyright 2012 Jun Wako <wakojun@gmail.com>
      5 Copyright 2015 Jack Humbert
      6 Copyright 2017 Art Ortenburger
      7 
      8 This program is free software: you can redistribute it and/or modify
      9 it under the terms of the GNU General Public License as published by
     10 the Free Software Foundation, either version 2 of the License, or
     11 (at your option) any later version.
     12 
     13 This program is distributed in the hope that it will be useful,
     14 but WITHOUT ANY WARRANTY; without even the implied warranty of
     15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     16 GNU General Public License for more details.
     17 
     18 You should have received a copy of the GNU General Public License
     19 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     20 */
     21 
     22 #pragma once
     23 
     24 /* Use I2C or Serial, not both */
     25 
     26 // #define USE_SERIAL
     27 #define USE_I2C
     28 
     29 /* Select hand configuration */
     30 
     31 // #define MASTER_LEFT
     32 // #define MASTER_RIGHT
     33 #define EE_HANDS
     34 
     35 /* key combination for magic key command */
     36 #undef IS_COMMAND
     37 #define IS_COMMAND() ( \
     38     get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \
     39 )
     40 
     41 #ifdef RGBLIGHT_ENABLE
     42 #   define RGB_DI_PIN D3
     43 #   define RGBLED_NUM 16     // Number of LEDs
     44 #   define RGBLED_SPLIT { 8, 8 }
     45 
     46 #   define RGBLIGHT_HUE_STEP 12
     47 #   define RGBLIGHT_SAT_STEP 12
     48 #   define RGBLIGHT_VAL_STEP 12
     49 #   define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
     50 #   define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
     51 #endif // RGBLIGHT_ENABLE
     52 
     53 #ifdef AUDIO_ENABLE
     54 #   define C6_AUDIO
     55 #   ifdef RGBLIGHT_ENABLE
     56 #       define NO_MUSIC_MODE
     57 #   endif
     58 #endif //AUDIO_ENABLE
     59 
     60 #undef PRODUCT
     61 #ifdef KEYBOARD_orthodox_rev1
     62 #   define PRODUCT         Drashna Hacked Orthodox Rev.1
     63 #elif KEYBOARD_orthodox_rev3
     64 #   define PRODUCT         Drashna Hacked Orthodox Rev.3
     65 #endif
     66 
     67 #define QMK_ESC_OUTPUT D7 // usually COL
     68 #ifdef KEYBOARD_orthodox_rev1
     69 #   define QMK_ESC_INPUT D4 // usually ROW
     70 #else
     71 #   define QMK_ESC_INPUT D2 // usually ROW
     72 #endif
     73 #define QMK_LED B0
     74 #define QMK_SPEAKER C6
     75 
     76 #define SHFT_LED1 5
     77 #define SHFT_LED2 10
     78 
     79 #define CTRL_LED1 6
     80 #define CTRL_LED2 9
     81 
     82 #define GUI_LED1 8
     83 #define ALT_LED1 7