aboutsummaryrefslogtreecommitdiff
path: root/keyboards/buzzard/rev1/rev1.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/buzzard/rev1/rev1.h')
-rw-r--r--keyboards/buzzard/rev1/rev1.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/keyboards/buzzard/rev1/rev1.h b/keyboards/buzzard/rev1/rev1.h
new file mode 100644
index 000000000..c73e9164f
--- /dev/null
+++ b/keyboards/buzzard/rev1/rev1.h
@@ -0,0 +1,52 @@
1// Copyright 2021 Christoph Rehmann (crehmann)
2// SPDX-License-Identifier: GPL-2.0-or-later
3#pragma once
4
5#include "buzzard.h"
6
7/* This a shortcut to help you visually see your layout.
8 *
9 * The first section contains all of the arguments representing the physical
10 * layout of the board and position of the keys.
11 *
12 * The second converts the arguments into a two-dimensional array which
13 * represents the switch matrix.
14 */
15#define LAYOUT( \
16 L00, L01, L02, L03, L04, R05, R06, R07, R08, R09, \
17 L10, L11, L12, L13, L14, L15, R16, R17, R18, R19, R20, R21, \
18 L22, L23, L24, L25, L26, L27, R28, R29, R30, R31, R32, R33, \
19 L34, L35, L36, R37, R38, R39 \
20) \
21{ \
22 { L04, L03, L02, L01, L00, KC_NO }, \
23 { L15, L14, L13, L12, L11, L10 }, \
24 { L27, L26, L25, L24, L23, L22 }, \
25 { L36, L35, L34, KC_NO, KC_NO, KC_NO }, \
26 { R05, R06, R07, R08, R09, KC_NO }, \
27 { R16, R17, R18, R19, R20, R21 }, \
28 { R28, R29, R30, R31, R32, R33 }, \
29 { R37, R38, R39, KC_NO, KC_NO, KC_NO }, \
30}
31
32#define LAYOUT_stack( \
33 L00, L01, L02, L03, L04, \
34 L10, L11, L12, L13, L14, L15, \
35 L22, L23, L24, L25, L26, L27, \
36 L34, L35, L36, \
37 \
38 R05, R06, R07, R08, R09, \
39 R16, R17, R18, R19, R20, R21, \
40 R28, R29, R30, R31, R32, R33, \
41 R37, R38, R39 \
42) \
43{ \
44 { L04, L03, L02, L01, L00, KC_NO }, \
45 { L15, L14, L13, L12, L11, L10 }, \
46 { L27, L26, L25, L24, L23, L22 }, \
47 { L36, L35, L34, KC_NO, KC_NO, KC_NO }, \
48 { R05, R06, R07, R08, R09, KC_NO }, \
49 { R16, R17, R18, R19, R20, R21 }, \
50 { R28, R29, R30, R31, R32, R33 }, \
51 { R37, R38, R39, KC_NO, KC_NO, KC_NO }, \
52}