qmk_firmware

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

config.h (1317B)


      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 USE_I2C
     22 #define SCL_CLOCK  800000UL
     23 
     24 //#define DEBUG_MATRIX_SCAN_RATE //Use this to determine scan-rate.
     25 
     26 #ifdef AUDIO_ENABLE
     27   #define AUDIO_PIN C6
     28   #define STARTUP_SONG SONG(STARTUP_SOUND)
     29   #define NO_MUSIC_MODE
     30   #define TONE_QWERTY SONG(Q__NOTE(_E4));
     31   #define TONE_NUMPAD SONG(Q__NOTE(_D4));
     32 #endif
     33 
     34 /*
     35  * Feature disable options
     36  *  These options are also useful to firmware size reduction.
     37  */
     38 
     39 /* disable debug print */
     40 // #define NO_DEBUG
     41 
     42 /* disable print */
     43 // #define NO_PRINT
     44 
     45 /* disable action features */
     46 //#define NO_ACTION_LAYER
     47 //#define NO_ACTION_TAPPING
     48 #define NO_ACTION_ONESHOT