qmk_firmware

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

config.h (3420B)


      1 /*
      2 Copyright 2023 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 // Right side has to be the master since 1, LED data is output from right side, and 2, Audio pin is prepared on right side as a reserve.
     21 #define MASTER_RIGHT
     22 
     23 // for "Generic" Promicro to be detected correctly as lefthand side (slave)
     24 #define SPLIT_USB_DETECT
     25 
     26 #define RGBLIGHT_LAYERS
     27 
     28 #ifdef RGB_MATRIX_ENABLE
     29 /* ws2812 RGB MATRIX */
     30 //  for all fingers used at once.
     31 #   define LED_HITS_TO_REMEMBER 10
     32 
     33 // the max brightness setting has no effect on rgb_matrix_set_color().
     34 // Use darker colors instead.
     35 /*              RGB darker COLORS             */
     36 #   define RGB_DARKWHITE 0x66, 0x66, 0x66
     37 #   define RGB_DARKRED 0x66, 0x0, 0x0
     38 #   define RGB_DARKCORAL 0x66, 0x31, 0x1E
     39 #   define RGB_DARKORANGE 0x66, 0x33, 0x0
     40 #   define RGB_DARKGOLDENROD 0x56, 0x42, 0xD
     41 #   define RGB_DARKGOLD 0x66, 0x56, 0x0
     42 #   define RGB_DARKYELLOW 0x66, 0x66, 0x0
     43 #   define RGB_DARKCHARTREUSE 0x33, 0x66, 0x0
     44 #   define RGB_DARKGREEN 0x0, 0x66, 0x0
     45 #   define RGB_DARKSPRINGGREEN 0x0, 0x66, 0x33
     46 #   define RGB_DARKTURQUOISE 0x1C, 0x2C, 0x2A
     47 #   define RGB_DARKTEAL 0x0, 0x33, 0x33
     48 #   define RGB_DARKCYAN 0x0, 0x66, 0x66
     49 #   define RGB_DARKAZURE 0x3D, 0x62, 0x66
     50 #   define RGB_DARKBLUE 0x0, 0x0, 0x66
     51 #   define RGB_DARKPURPLE 0x30, 0x0, 0x66
     52 #   define RGB_DARKMAGENTA 0x66, 0x0, 0x66
     53 #   define RGB_DARKPINK 0x66, 0x33, 0x4C
     54 #endif  // RGB_MATRIX_ENABLE
     55 
     56 /*
     57  * Feature disable options
     58  *  These options are also useful to firmware size reduction.
     59  */
     60 
     61 /* disable debug print */
     62 //#define NO_DEBUG
     63 
     64 /* disable print */
     65 //#define NO_PRINT
     66 
     67 /* disable action features */
     68 //#define NO_ACTION_LAYER
     69 //#define NO_ACTION_TAPPING
     70 //#define NO_ACTION_ONESHOT
     71 
     72 /* Audio */
     73 #ifdef AUDIO_ENABLE
     74 #   define AUDIO_PIN B5  // use EX1 = PB5 = PIN9 as Audio output
     75 // #define DAC_SAMPLE_MAX 32768U
     76 #   define DAC_SAMPLE_MAX 65535U
     77 // #define AUDIO_CLICKY
     78 #   define NO_MUSIC_MODE
     79 // #define STARTUP_SONG SONG(FANTASIE_IMPROMPTU)
     80 // #define STARTUP_SONG SONG(NOCTURNE_OP_9_NO_1)
     81 // #define STARTUP_SONG SONG(USSR_ANTHEM)
     82 // #define STARTUP_SONG SONG(CAMPANELLA)
     83 #endif
     84 
     85 /*
     86  * MIDI options
     87  */
     88 
     89 /* enable basic MIDI features:
     90    - MIDI notes can be sent when in Music mode is on
     91 */
     92 //#define MIDI_BASIC
     93 
     94 /* enable advanced MIDI features:
     95    - MIDI notes can be added to the keymap
     96    - Octave shift and transpose
     97    - Virtual sustain, portamento, and modulation wheel
     98    - etc.
     99 */
    100 #ifdef MIDI_ENABLE
    101 #   define MIDI_ADVANCED
    102 // Initial velocity value (avoid using 127 since it is used as a special number in some sound sources.)
    103 #   define MIDI_INITIAL_VELOCITY 117
    104 #endif  //  MIDI_ENABLE
    105 
    106 /* 2021/01/22 added to shrink firmware size */
    107 // NO_ACTION_TAPPING -1964 bytes, however, this disables Layer mods...
    108 // #define NO_ACTION_TAPPING
    109 // NO_ACTION_ONESHOT -388 bytes
    110 #define NO_ACTION_ONESHOT