]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/ergodash/mini/mini.h
Fixup Bootmagic code (#6386)
[qmk_firmware.git] / keyboards / ergodash / mini / mini.h
1 #ifndef MINI_H
2 #define MINI_H
3
4 #include "ergodash.h"
5
6 #include "quantum.h"
7
8 #ifdef USE_I2C
9 #include <stddef.h>
10 #ifdef __AVR__
11         #include <avr/io.h>
12         #include <avr/interrupt.h>
13 #endif
14 #endif
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, L06, R00, R01, R02, R03, R04, R05, R06, \
21         L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
22         L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
23         L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36  \
24         ) \
25         { \
26                 { L00, L01, L02, L03, L04, L05, L06 }, \
27                 { L10, L11, L12, L13, L14, L15, L16 }, \
28                 { L20, L21, L22, L23, L24, L25, L26 }, \
29                 { L30, L31, L32, L33, L34, L35, L36 }, \
30                 { R06, R05, R04, R03, R02, R01, R00 }, \
31                 { R16, R15, R14, R13, R12, R11, R10 }, \
32                 { R26, R25, R24, R23, R22, R21, R20 }, \
33                 { R36, R35, R34, R33, R32, R31, R30 }, \
34         }
35 #else
36 // Keymap with right side flipped
37 // (TRRS jack on both halves are to the right)
38 #define LAYOUT( \
39         L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
40         L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
41         L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
42         L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36  \
43         ) \
44         { \
45                 { L00, L01, L02, L03, L04, L05, L06 }, \
46                 { L10, L11, L12, L13, L14, L15, L16 }, \
47                 { L20, L21, L22, L23, L24, L25, L26 }, \
48                 { L30, L31, L32, L33, L34, L35, L36 }, \
49                 { R00, R01, R02, R03, R04, R05, R06 }, \
50                 { R10, R11, R12, R13, R14, R15, R16 }, \
51                 { R20, R21, R22, R23, R24, R25, R26 }, \
52                 { R30, R31, R32, R33, R34, R35, R36 }, \
53         }
54 #endif
55
56 #endif