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