]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lets_split/rev2/rev2.h
Revise KEYMAP macro to make left and right halves more clear
[qmk_firmware.git] / keyboards / lets_split / rev2 / rev2.h
1 #ifndef REV2_H
2 #define REV2_H
3
4 #include "../lets_split.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 #ifdef SSD1306OLED
17         extern bool iota_gfx_init(void);
18         extern void iota_gfx_task(void);
19         extern bool iota_gfx_off(void);
20         extern bool iota_gfx_on(void);
21         extern void iota_gfx_flush(void);
22         extern void iota_gfx_write_char(uint8_t c);
23         extern void iota_gfx_write(const char *data);
24         extern void iota_gfx_write_P(const char *data);
25         extern void iota_gfx_clear_screen(void);
26 #endif
27 #endif
28
29 //void promicro_bootloader_jmp(bool program);
30
31 #ifndef FLIP_HALF
32 // Standard Keymap
33 // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left)
34 #define KEYMAP( \
35         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
36         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
37         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
38         L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
39         ) \
40         { \
41                 { L00, L01, L02, L03, L04, L05 }, \
42                 { L10, L11, L12, L13, L14, L15 }, \
43                 { L20, L21, L22, L23, L24, L25 }, \
44                 { L30, L31, L32, L33, L34, L35 }, \
45                 { R05, R04, R03, R02, R01, R00 }, \
46                 { R15, R14, R13, R12, R11, R10 }, \
47                 { R25, R24, R23, R22, R21, R20 }, \
48                 { R35, R34, R33, R32, R31, R30 } \
49         }
50 #else
51 // Keymap with right side flipped
52 // (TRRS jack on both halves are to the right)
53 #define KEYMAP( \
54         L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
55         L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
56         L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
57         L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \
58         ) \
59         { \
60                 { L00, L01, L02, L03, L04, L05 }, \
61                 { L10, L11, L12, L13, L14, L15 }, \
62                 { L20, L21, L22, L23, L24, L25 }, \
63                 { L30, L31, L32, L33, L34, L35 }, \
64                 { R00, R01, R02, R03, R04, R05 }, \
65                 { R10, R11, R12, R13, R14, R15 }, \
66                 { R20, R21, R22, R23, R24, R25 }, \
67                 { R30, R31, R32, R33, R34, R35 } \
68         }
69 #endif
70
71 #endif