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