forked from forks/qmk_firmware
37 lines
910 B
C
37 lines
910 B
C
|
// Copyright 2021 s8erdude (@jpuerto96)
|
||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
|
||
|
/* key matrix size */
|
||
|
#define MATRIX_ROWS 8
|
||
|
#define MATRIX_COLS 12
|
||
|
|
||
|
#define MATRIX_ROWS_PER_SIDE (MATRIX_ROWS / 2)
|
||
|
#define MATRIX_COLS_PER_SIDE (MATRIX_COLS / 2)
|
||
|
|
||
|
// wiring
|
||
|
#define MATRIX_ROW_PINS_MCU \
|
||
|
{ B0, B1, B2, B3 }
|
||
|
#define MATRIX_COL_PINS_MCU \
|
||
|
{ F7, F6, F5, F4, F1, F0 }
|
||
|
#define MATRIX_ROW_PINS_MCP \
|
||
|
{ B0, B1, B2, B3 }
|
||
|
#define MATRIX_COL_PINS_MCP \
|
||
|
{ A0, A1, A2, A3, A4, A5 }
|
||
|
|
||
|
/*
|
||
|
* Keyboard Matrix Assignments
|
||
|
*
|
||
|
* Change this to how you wired your keyboard
|
||
|
* COLS: AVR pins used for columns, left to right
|
||
|
* ROWS: AVR pins used for rows, top to bottom
|
||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
/* COL2ROW, ROW2COL */
|
||
|
#define DIODE_DIRECTION COL2ROW
|