diff options
author | QMK Bot <hello@qmk.fm> | 2022-03-29 19:19:19 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-03-29 19:19:19 +0000 |
commit | d76a68fb0f571132c914ac378f67268b580750fe (patch) | |
tree | 8e59c452a5956f2715b9d9dc616adaae17522c8c /keyboards/handwired/m40/5x5_macropad/5x5_macropad.h | |
parent | aadf0a103810d76388e745c4f0bc0eddaa30d4b7 (diff) | |
parent | 6cdf230a20e34302f54db018c18063395345757f (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/m40/5x5_macropad/5x5_macropad.h')
-rw-r--r-- | keyboards/handwired/m40/5x5_macropad/5x5_macropad.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/keyboards/handwired/m40/5x5_macropad/5x5_macropad.h b/keyboards/handwired/m40/5x5_macropad/5x5_macropad.h new file mode 100644 index 0000000000..78e485f00e --- /dev/null +++ b/keyboards/handwired/m40/5x5_macropad/5x5_macropad.h @@ -0,0 +1,27 @@ +// 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 } \ +} |