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