aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/4by3/4by3.h
blob: b41628137a6f8cde0d1dfc6d78e6a805f60c551a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once

#include "quantum.h"

/* LAYOUT_horizontal
 * ┌───┐
 * │USB│
 * ├───┼───┬───┬───┐
 * │K00│K01│K02│K03│
 * ├───┼───┼───┼───┤
 * │K10│K11│K12│K13│
 * ├───┼───┼───┼───┤
 * │K20│K21│K22│K23│
 * └───┴───┴───┴───┘
 */
#define LAYOUT_horizontal( \
	K00, K01, K02, K03, \
	K10, K11, K12, K13, \
	K20, K21, K22, K23  \
) { \
	{ K00, K01, K02, K03 }, \
	{ K10, K11, K12, K13 }, \
	{ K20, K21, K22, K23 }  \
}

/* LAYOUT_vertical_right
 * ┌───┬───┬───┬───┐
 * │K00│K01│K03│USB│
 * ├───┼───┼───┬───┘
 * │K04│K05│K06│
 * ├───┼───┼───┤
 * │K07│K08│K09│
 * ├───┼───┼───┤
 * │K10│K11│K12│
 * └───┴───┴───┘
 */
#define LAYOUT_vertical_right( \
	K20, K10, K00, \
    K21, K11, K01, \
    K22, K12, K02, \
    K23, K13, K03  \
) { \
	{ K00, K01, K02, K03 }, \
	{ K10, K11, K12, K13 }, \
	{ K20, K21, K22, K23 }  \
}

/* LAYOUT_vertical_left
 *     ┌───┬───┬───┐
 *     │K00│K01│K03│
 *     ├───┼───┼───┤
 *     │K04│K05│K06│
 *     ├───┼───┼───┤
 *     │K07│K08│K09│
 * ┌───┼───┼───┼───┤
 * │USB│K10│K11│K12│
 * └───┴───┴───┴───┘
 */
#define LAYOUT_vertical_left( \
	K03, K13, K23, \
    K02, K12, K22, \
    K01, K11, K21, \
    K00, K10, K20  \
) { \
	{ K00, K01, K02, K03 }, \
	{ K10, K11, K12, K13 }, \
	{ K20, K21, K22, K23 }  \
}

#define LAYOUT LAYOUT_horizontal