qmk_firmware

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

config.h (1946B)


      1 /*
      2 Copyright 2021 mtei
      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 
     21 /* key matrix size */
     22 #define MATRIX_ROWS 5
     23 #define MATRIX_COLS 16
     24 
     25 /* Proton-C **************************
     26                  ====
     27          +-------====------+
     28    DEBUG | A9/TX/SCL2   5V | (VUSB)
     29          | A10/RX/SDA2 GND |
     30          | GND       FLASH |
     31          | GND        3.3V | (VCC)
     32      C15 | B7/SDA1      A2 | C0
     33      C14 | B6/SCL1      A1 | C1
     34      C13 | B5           A0 | C2
     35      C12 | B4      SCL1/B8 | C3
     36      C11 | B3     SCLK/B13 | C4
     37      C10 | B2     MISO/B14 | C5
     38      C9  | B1     MOSI/B15 | C6
     39      C8  | B0      SDA1/B9 | C7
     40          +---+         +---+
     41          +---+         +---+
     42       R0 | A4          B10 |
     43       R1 | A5          B11 |
     44       R2 | A6          B12 |
     45       R3 | A7          A14 |
     46       R4 | A8          A13 |
     47          | A15         RST |
     48          +-----------------+
     49 ***************************************/
     50 
     51 
     52 /* COL2ROW, ROW2COL */
     53 #define DIODE_DIRECTION COL2ROW
     54 
     55 /*
     56  * Feature disable options
     57  *  These options are also useful to firmware size reduction.
     58  */
     59 
     60 /* disable debug print */
     61 //#define NO_DEBUG
     62 
     63 /* disable print */
     64 //#define NO_PRINT
     65 
     66 /* disable action features */
     67 //#define NO_ACTION_LAYER
     68 //#define NO_ACTION_TAPPING
     69 //#define NO_ACTION_ONESHOT
     70 
     71 #ifdef DEBUG_CONFIG
     72 #    define MATRIX_DEBUG_PIN A9
     73 #    include "../debug_config.h"
     74 #endif