]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/divergetm2/divergetm2.h
Add pep8-naming to our python linting
[qmk_firmware.git] / keyboards / divergetm2 / divergetm2.h
1 /* Copyright 2018 Christon DeWan (xton)
2  * Copyright 2017 IslandMan93
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #pragma once
19
20 #include "quantum.h"
21
22 #ifdef USE_I2C
23 #include <stddef.h>
24 #ifdef __AVR__
25         #include <avr/io.h>
26         #include <avr/interrupt.h>
27 #endif
28 #endif
29
30 #ifndef FLIP_HALF
31 // Standard Keymap
32 // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
33 #define LAYOUT( \
34         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
35         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
36         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
37         L30, L31, L32, L33,    L34,     R31,     R32, R33, R34, R35 \
38         ) \
39         { \
40                 { L00, L01, L02, L03, L04, L05 }, \
41                 { L10, L11, L12, L13, L14, L15 }, \
42                 { L20, L21, L22, L23, L24, L25 }, \
43                 { L30, L31, L32, L33, L34, KC_NO }, \
44                 { R05, R04, R03, R02, R01, R00 }, \
45                 { R15, R14, R13, R12, R11, R10 }, \
46                 { R25, R24, R23, R22, R21, R20 }, \
47                 { R35, R34, R33, R32, R31, KC_NO } \
48         }
49 #else
50 // Keymap with right side flipped
51 // (TRRS jack on both halves are to the right)
52 #define LAYOUT( \
53         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
54         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
55         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
56         L30, L31, L32, L33,    L34,     R31,    R32, R33, R34, R35 \
57         ) \
58         { \
59                 { L00, L01, L02, L03, L04, L05 }, \
60                 { L10, L11, L12, L13, L14, L15 }, \
61                 { L20, L21, L22, L23, L24, L25 }, \
62                 { L30, L31, L32, L33, L34, KC_NO }, \
63                 { R00, R01, R02, R03, R04, R05 }, \
64                 { R10, R11, R12, R13, R14, R15 }, \
65                 { R20, R21, R22, R23, R24, R25 }, \
66                 { KC_NO, R31, R32, R33, R34, R35 } \
67         }
68 #endif
69
70 #define LAYOUT_ortho_4x12_2x2u LAYOUT