qmk_firmware

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

config.h (2912B)


      1 /*
      2 Copyright 2021 3araht
      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 #ifdef RGB_MATRIX_ENABLE
     21 
     22 //  for all fingers used at once.
     23 #   define LED_HITS_TO_REMEMBER 10
     24 
     25 // the max brightness setting has no effect on rgb_matrix_set_color().
     26 // Use darker colors instead.
     27 /*              RGB darker COLORS             */
     28 #   define RGB_DARKWHITE 0x33, 0x33, 0x33
     29 #   define RGB_DARKRED 0x33, 0x0, 0x0
     30 #   define RGB_DARKCORAL 0x33, 0x18, 0xF
     31 #   define RGB_DARKORANGE 0x33, 0x19, 0x0
     32 #   define RGB_DARKGOLDENROD 0x2B, 0x21, 0x6
     33 #   define RGB_DARKGOLD 0x33, 0x2B, 0x0
     34 #   define RGB_DARKYELLOW 0x33, 0x33, 0x0
     35 #   define RGB_DARKCHARTREUSE 0x19, 0x33, 0x0
     36 #   define RGB_DARKGREEN 0x0, 0x33, 0x0
     37 #   define RGB_DARKSPRINGGREEN 0x0, 0x33, 0x19
     38 #   define RGB_DARKTURQUOISE 0xE, 0x16, 0x15
     39 #   define RGB_DARKTEAL 0x0, 0x19, 0x19
     40 #   define RGB_DARKCYAN 0x0, 0x33, 0x33
     41 #   define RGB_DARKAZURE 0x1E, 0x31, 0x33
     42 #   define RGB_DARKBLUE 0x0, 0x0, 0x33
     43 #   define RGB_DARKPURPLE 0x18, 0x0, 0x33
     44 #   define RGB_DARKMAGENTA 0x33, 0x0, 0x33
     45 #   define RGB_DARKPINK 0x33, 0x19, 0x26
     46 
     47 #endif  // RGB_MATRIX_ENABLE
     48 
     49 /* Audio */
     50 #ifdef AUDIO_ENABLE
     51 #   define AUDIO_PIN B6  // use PB6 = PIN10 as Audio output
     52 // #define DAC_SAMPLE_MAX 32768U
     53 #   define DAC_SAMPLE_MAX 65535U
     54 // #define AUDIO_CLICKY
     55 #   define NO_MUSIC_MODE
     56 // #define STARTUP_SONG SONG(FANTASIE_IMPROMPTU)
     57 // #define STARTUP_SONG SONG(NOCTURNE_OP_9_NO_1)
     58 // #define STARTUP_SONG SONG(USSR_ANTHEM)
     59 // #define STARTUP_SONG SONG(CAMPANELLA)
     60 #endif  //  AUDIO_ENABLE
     61 
     62 /*
     63  * MIDI options
     64  */
     65 
     66 /* enable basic MIDI features:
     67    - MIDI notes can be sent when in Music mode is on
     68 */
     69 //#define MIDI_BASIC
     70 
     71 /* enable advanced MIDI features:
     72    - MIDI notes can be added to the keymap
     73    - Octave shift and transpose
     74    - Virtual sustain, portamento, and modulation wheel
     75    - etc.
     76 */
     77 #ifdef MIDI_ENABLE
     78 #   define MIDI_ADVANCED
     79 // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
     80 #   define MIDI_INITIAL_VELOCITY 117
     81 #endif  //  MIDI_ENABLE
     82 
     83 /* disable action features */
     84 //#define NO_ACTION_LAYER
     85 //#define NO_ACTION_TAPPING
     86 
     87 /* 2021/01/22 added to shrink firmware size */
     88 // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
     89 // #define NO_ACTION_TAPPING
     90 // NO_ACTION_ONESHOT -388 bytes
     91 #define NO_ACTION_ONESHOT