diff options
Diffstat (limited to 'keyboards/handwired/snatchpad/snatchpad.h')
| -rw-r--r-- | keyboards/handwired/snatchpad/snatchpad.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/handwired/snatchpad/snatchpad.h b/keyboards/handwired/snatchpad/snatchpad.h new file mode 100644 index 000000000..07d6bd209 --- /dev/null +++ b/keyboards/handwired/snatchpad/snatchpad.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | // Copyright 2022 xia0 (@xia0) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "quantum.h" | ||
| 7 | |||
| 8 | /* This is a shortcut to help you visually see your layout. | ||
| 9 | * | ||
| 10 | * The first section contains all of the arguments representing the physical | ||
| 11 | * layout of the board and position of the keys. | ||
| 12 | * | ||
| 13 | * The second converts the arguments into a two-dimensional array which | ||
| 14 | * represents the switch matrix. | ||
| 15 | */ | ||
| 16 | #define LAYOUT( \ | ||
| 17 | k00, k01, k02, \ | ||
| 18 | k10, k11, k12, \ | ||
| 19 | k20, k22 \ | ||
| 20 | ) { \ | ||
| 21 | { k00 , k01 , k02 }, \ | ||
| 22 | { k10 , k11 , k12 }, \ | ||
| 23 | { k20 , KC_NO , k22 } \ | ||
| 24 | } | ||
