mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-16 22:53:22 +00:00
6cdf230a20
* Adding the custom handwired 5x5 macropad. * Update keyboards/handwired/m40/5x5_macropad/readme.md * Update keyboards/handwired/m40/5x5_macropad/rules.mk * Update keyboards/handwired/m40/5x5_macropad/readme.md * Update readme.md fixed the github link to my profile * Update keyboards/handwired/m40/5x5_macropad/5x5_macropad.c * Update keyboards/handwired/m40/5x5_macropad/5x5_macropad.h * Update keyboards/handwired/m40/5x5_macropad/5x5_macropad.h * Update keyboards/handwired/m40/5x5_macropad/config.h * Update keyboards/handwired/m40/5x5_macropad/readme.md * Update keyboards/handwired/m40/5x5_macropad/config.h * Update keyboards/handwired/m40/5x5_macropad/readme.md * Update keyboards/handwired/m40/5x5_macropad/keymaps/default/keymap.c * Apply suggestions from code review * added discord Id for maintainer contact * Update keyboards/handwired/m40/5x5_macropad/readme.md * Update keyboards/handwired/m40/5x5_macropad/info.json
28 lines
815 B
C
28 lines
815 B
C
// Copyright 2022 Tomek (@m40-dev)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "quantum.h"
|
|
|
|
/* This is a shortcut to help you visually see your layout.
|
|
*
|
|
* The first section contains all of the arguments representing the physical
|
|
* layout of the board and position of the keys.
|
|
*
|
|
* The second converts the arguments into a two-dimensional array which
|
|
* represents the switch matrix.
|
|
*/
|
|
#define LAYOUT_ortho_5x5( \
|
|
K000, K001, K002, K003, K004, \
|
|
K100, K101, K102, K103, K104, \
|
|
K200, K201, K202, K203, K204, \
|
|
K300, K301, K302, K303, K304, \
|
|
K400, K401, K402, K403, K404 ) { \
|
|
{ K000, K001, K002, K003, K004 }, \
|
|
{ K100, K101, K102, K103, K104 }, \
|
|
{ K200, K201, K202, K203, K204 }, \
|
|
{ K300, K301, K302, K303, K304 }, \
|
|
{ K400, K401, K402, K403, K404 } \
|
|
}
|