]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/nyquist/rev2/rev2.h
6d3a23383bfe2dd517492b9269b850258aa0f597
[qmk_firmware.git] / keyboards / nyquist / rev2 / rev2.h
1 #pragma once
2
3 #include "nyquist.h"
4
5 //void promicro_bootloader_jmp(bool program);
6 #include "quantum.h"
7
8
9 #ifdef USE_I2C
10 #include <stddef.h>
11 #ifdef __AVR__
12         #include <avr/io.h>
13         #include <avr/interrupt.h>
14 #endif
15 #endif
16
17 //void promicro_bootloader_jmp(bool program);
18
19 #ifndef FLIP_HALF
20 // Standard Keymap
21 // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
22 #define LAYOUT( \
23         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
24         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
25         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
26         L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
27     L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
28         ) \
29         { \
30                 { L00, L01, L02, L03, L04, L05 }, \
31                 { L10, L11, L12, L13, L14, L15 }, \
32                 { L20, L21, L22, L23, L24, L25 }, \
33                 { L30, L31, L32, L33, L34, L35 }, \
34                 { L40, L41, L42, L43, L44, L45 }, \
35                 { R05, R04, R03, R02, R01, R00 }, \
36                 { R15, R14, R13, R12, R11, R10 }, \
37                 { R25, R24, R23, R22, R21, R20 }, \
38                 { R35, R34, R33, R32, R31, R30 }, \
39                 { R45, R44, R43, R42, R41, R40 } \
40         }
41 #else
42 // Keymap with right side flipped
43 // (TRRS jack on both halves are to the right)
44 #define LAYOUT( \
45         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
46         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
47         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
48         L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \
49     L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
50         ) \
51         { \
52                 { L00, L01, L02, L03, L04, L05 }, \
53                 { L10, L11, L12, L13, L14, L15 }, \
54                 { L20, L21, L22, L23, L24, L25 }, \
55                 { L30, L31, L32, L33, L34, L35 }, \
56                 { L40, L41, L42, L43, L44, L45 }, \
57                 { R00, R01, R02, R03, R04, R05 }, \
58                 { R10, R11, R12, R13, R14, R15 }, \
59                 { R20, R21, R22, R23, R24, R25 }, \
60                 { R30, R31, R32, R33, R34, R35 }, \
61                 { R40, R41, R42, R43, R44, R45 } \
62         }
63 #endif
64
65 #define LAYOUT_ortho_5x12 LAYOUT