qmk_firmware

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

config.h (1043B)


      1 /* Copyright 2021 Danny Nguyen <danny@keeb.io>
      2 
      3 This program is free software: you can redistribute it and/or modify
      4 it under the terms of the GNU General Public License as published by
      5 the Free Software Foundation, either version 2 of the License, or
      6 (at your option) any later version.
      7 
      8 This program is distributed in the hope that it will be useful,
      9 but WITHOUT ANY WARRANTY; without even the implied warranty of
     10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11 GNU General Public License for more details.
     12 
     13 You should have received a copy of the GNU General Public License
     14 along with this program.  If not, see <http://www.gnu.org/licenses/>.
     15 */
     16 
     17 #pragma once
     18 
     19 
     20 /* key matrix size */
     21 #define MATRIX_ROWS 5
     22 #define MATRIX_COLS 16
     23 #define ATMEGA_COLS 8
     24 
     25 /* key matrix pins */
     26 #define MATRIX_ROW_PINS { B1, B2, B3, C6, B6 }
     27 #define MATRIX_COL_PINS { F6, B5, B4, D7, D6, D5, D3, D2 }
     28 // MCP23018 pinout:
     29 // Rows: B4, B3, B2, B1, B0
     30 // Cols: A0, A1, A2, A3, A4, A5, A6, A7
     31 
     32 /* COL2ROW or ROW2COL */
     33 #define DIODE_DIRECTION COL2ROW