qmk_firmware

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

config.h (1424B)


      1 /*
      2 Copyright (c) 2022 David Kuehling <dvdkhlng TA posteo TOD de>
      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 /* Matrix size */
     22 #define MATRIX_ROWS 7
     23 #define MATRIX_COLS 19
     24 
     25 /* Pin-out */
     26 #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6, B4 }
     27 
     28 /* The pin connecting to the SN74HC165 SH/~LD in */
     29 #define ROW_SHIFT_PIN B6
     30 
     31 /* Column read via SPI (shift register) */
     32 /* #define MATRIX_COL_PINS { } */
     33 
     34 #define LED_FUN_LOCK_PIN F6 /* A1 (handled in layer_state_set_user()) */
     35 
     36 /* audio config */
     37 #define AUDIO_PIN B5
     38 #define AUDIO_CLICKY
     39 #define AUDIO_INIT_DELAY
     40 #define AUDIO_CLICKY_FREQ_RANDOMNESS 0.0f
     41 #define NO_MUSIC_MODE
     42 
     43 /* diodes go row->col, though this is hard-coded in matrix.c and we drive the
     44  * matrix differently: we have pull-down on the columns and drive the selected
     45  * row high */
     46 /* #define DIODE_DIRECTION ROW2COL */