qmk

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

config.h (1724B)


      1 /*
      2 Copyright 2017 Danny Nguyen <danny@hexwire.com>
      3 
      4 This program is free software: you can redistribute it and/or modify
      5 it under the terms of the GNU General Public License as published by
      6 the Free Software Foundation, either version 2 of the License, or
      7 (at your option) any later version.
      8 
      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 
     14 You should have received a copy of the GNU General Public License
     15 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     16 */
     17 
     18 #pragma once
     19 
     20 #undef MATRIX_ROWS
     21 #define MATRIX_ROWS 5
     22 
     23 #ifdef RGBLIGHT_ENABLE
     24 #   undef RGBLED_NUM
     25 #   define RGBLED_NUM 16
     26 
     27 #   define RGBLIGHT_HUE_STEP 8
     28 #   define RGBLIGHT_SAT_STEP 8
     29 #   define RGBLIGHT_VAL_STEP 8
     30 #   define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
     31 #   define RGBLIGHT_EFFECT_SNAKE_LENGTH 2
     32 #endif // RGBLIGHT_ENABLE
     33 
     34 
     35 
     36 
     37 #undef PRODUCT
     38 #define PRODUCT   Drashnas Viterbi Macro Pad
     39 
     40 #ifdef AUDIO_ENABLE
     41 #   define C6_AUDIO
     42 #   define NO_MUSIC_MODE
     43 #endif
     44 
     45 #define LAYOUT_ortho_5x7( \
     46     L00, L01, L02, L03, L04, L05, L06, \
     47     L10, L11, L12, L13, L14, L15, L16, \
     48     L20, L21, L22, L23, L24, L25, L26, \
     49     L30, L31, L32, L33, L34, L35, L36, \
     50     L40, L41, L42, L43, L44, L45, L46 \
     51     ) \
     52 	{ \
     53 		{ L00, L01, L02, L03, L04, L05, L06 }, \
     54 		{ L10, L11, L12, L13, L14, L15, L16 }, \
     55 		{ L20, L21, L22, L23, L24, L25, L26 }, \
     56 		{ L30, L31, L32, L33, L34, L35, L36 }, \
     57 		{ L40, L41, L42, L43, L44, L45, L46 }, \
     58   }
     59 
     60 #define QMK_ESC_OUTPUT F5 // usually COL
     61 #define QMK_ESC_INPUT D4 // usually ROW
     62 #define QMK_LED B0
     63 #define QMK_SPEAKER C6