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