]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/levinson/rev1/rev1.h
Do some cleanup for the API
[qmk_firmware.git] / keyboards / levinson / rev1 / rev1.h
1 #ifndef REV2_H
2 #define REV2_H
3
4 #include "../levinson.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         ) \
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                 { R05, R04, R03, R02, R01, R00 }, \
35                 { R15, R14, R13, R12, R11, R10 }, \
36                 { R25, R24, R23, R22, R21, R20 }, \
37                 { R35, R34, R33, R32, R31, R30 } \
38         }
39 #else
40 // Keymap with right side flipped
41 // (TRRS jack on both halves are to the right)
42 #define KEYMAP( \
43         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
44         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
45         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
46         L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
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                 { R00, R01, R02, R03, R04, R05 }, \
54                 { R10, R11, R12, R13, R14, R15 }, \
55                 { R20, R21, R22, R23, R24, R25 }, \
56                 { R30, R31, R32, R33, R34, R35 } \
57         }
58 #endif
59
60 #define LAYOUT_ortho_4x12 KEYMAP
61
62 #endif