]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/dc01/right/right.h
add play/pause and brightness to layer 1
[qmk_firmware.git] / keyboards / dc01 / right / right.h
1 /* Copyright 2018 Yiancar
2  *
3  * This program is free software: you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16 #ifndef RIGHT_H
17 #define RIGHT_H
18
19 #include "quantum.h"
20
21 #define XXX KC_NO
22
23 // This a shortcut to help you visually see your layout.
24 // The first section contains all of the arguments
25 // The second converts the arguments into a two-dimensional array
26 #define LAYOUT_ansi( \
27          K01, K02, K03, K04, K05, K06, K07, \
28     K10, K11, K12, K13, K14, K15, K16, K17, \
29     K20, K21, K22, K23, K24, K25,      K27, \
30     K30, K31, K32, K33, K34,           K37, \
31     K40, K41, K42, K43, K44, K45            \
32 ) \
33 { \
34     { XXX, K01, K02, K03, K04, K05, K06, K07 }, \
35     { K10, K11, K12, K13, K14, K15, K16, K17 }, \
36     { K20, K21, K22, K23, K24, K25, XXX, K27 }, \
37     { K30, K31, K32, K33, K34, XXX, XXX, K37 }, \
38     { K40, K41, K42, K43, K44, K45, XXX, XXX }  \
39 }
40
41 #define LAYOUT_iso( \
42          K01, K02, K03, K04, K05, K06, K07, \
43     K10, K11, K12, K13, K14, K15, K16,      \
44     K20, K21, K22, K23, K24, K25, K26, K27, \
45     K30, K31, K32, K33, K34,           K37, \
46     K40, K41, K42, K43, K44, K45            \
47 ) \
48 { \
49     { XXX, K01, K02, K03, K04, K05, K06, K07 }, \
50     { K10, K11, K12, K13, K14, K15, K16, XXX }, \
51     { K20, K21, K22, K23, K24, K25, K26, K27 }, \
52     { K30, K31, K32, K33, K34, XXX, XXX, K37 }, \
53     { K40, K41, K42, K43, K44, K45, XXX, XXX }  \
54 }
55
56 #define LAYOUT_hhkb_ansi( \
57          K01, K02, K03, K04, K05, K06, K07, K00, \
58     K10, K11, K12, K13, K14, K15, K16, K17,      \
59     K20, K21, K22, K23, K24, K25,      K27,      \
60     K30, K31, K32, K33, K34,      K36, K37,      \
61     K40, K41, K42, K43, K44, K45                 \
62 ) \
63 { \
64     { K00, K01, K02, K03, K04, K05, K06, K07 }, \
65     { K10, K11, K12, K13, K14, K15, K16, K17 }, \
66     { K20, K21, K22, K23, K24, K25, XXX, K27 }, \
67     { K30, K31, K32, K33, K34, XXX, K36, K37 }, \
68     { K40, K41, K42, K43, K44, K45, XXX, XXX }  \
69 }
70
71 #define LAYOUT_hhkb_iso( \
72          K01, K02, K03, K04, K05, K06, K07, K00, \
73     K10, K11, K12, K13, K14, K15, K16,           \
74     K20, K21, K22, K23, K24, K25, K26, K27,      \
75     K30, K31, K32, K33, K34,      K36, K37,      \
76     K40, K41, K42, K43, K44, K45                 \
77 ) \
78 { \
79     { K00, K01, K02, K03, K04, K05, K06, K07 }, \
80     { K10, K11, K12, K13, K14, K15, K16, XXX }, \
81     { K20, K21, K22, K23, K24, K25, K26, K27 }, \
82     { K30, K31, K32, K33, K34, XXX, K36, K37 }, \
83     { K40, K41, K42, K43, K44, K45, XXX, XXX }  \
84 }
85
86 #endif