]> git.armaanb.net Git - 24pad.git/blob - 24pad.h
Initial commit
[24pad.git] / 24pad.h
1 // Copyright 2022 Armaan Bhojwani <me@armaanb.net>
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, k03, k10, k11, k12, k13, k20, k21, k22, k23, k30, k31, k32, k33, k40, k41, k42, k43, k50, k51, k52, k53 \
18 ) { \
19     { k00, k01, k02, k03 }, \
20     { k10, k11, k12, k13 }, \
21     { k20, k21, k22, k23 }, \
22     { k30, k31, k32, k33 }, \
23     { k40, k41, k42, k43 }, \
24     { k50, k51, k52, k53 }  \
25 }