]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/40percentclub/6lit/6lit.h
Tidy 40percentclub boards (#4403)
[qmk_firmware.git] / keyboards / 40percentclub / 6lit / 6lit.h
1 /* Copyright 2018
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 #pragma once
17
18 #include "quantum.h"
19 #define ___ KC_NO
20
21 #ifndef FLIP_HALF
22 #define LAYOUT_ortho_2x6( \
23         L00, L01, L02, R00, R01, R02, \
24         L10, L11, L12, R10, R11, R12  \
25 ) { \
26         { L00, L01, L02 }, \
27         { L10, L11, L12 }, \
28         { R02, R01, R00 }, \
29         { R12, R11, R10 }, \
30 }
31 #else
32 #define LAYOUT_ortho_2x6( \
33         L00, L01, L02, R00, R01, R02, \
34         L10, L11, L12, R10, R11, R12  \
35 ) { \
36         { L00, L01, L02 }, \
37         { L10, L11, L12 }, \
38         { R00, R01, R02 }, \
39         { R10, R11, R12 }, \
40 }
41 #endif
42
43 #define LAYOUT_ortho_2x3( \
44         L00, L01, L02, \
45         L10, L11, L12  \
46 ) { \
47         { L00, L01, L02 }, \
48         { L10, L11, L12 }, \
49         { ___, ___, ___ }, \
50   { ___, ___, ___ }, \
51 }
52
53 #define LAYOUT_macro LAYOUT_ortho_2x3
54 #define LAYOUT_split LAYOUT_ortho_2x6
55
56 #ifdef USE_I2C
57   #error "I2C not Supported"
58 #endif