]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/dactyl_manuform/4x5/dactyl_manuform.h
7e126d301757a201baba0b4b9d7a140e92e239bd
[qmk_firmware.git] / keyboards / handwired / dactyl_manuform / 4x5 / dactyl_manuform.h
1 #ifndef REV2_H
2 #define REV2_H
3
4 #include "dactyl_manuform.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 #define LAYOUT( \
22         L00, L01, L02, L03, L04,                     R00, R01, R02, R03, R04, \
23         L10, L11, L12, L13, L14,                     R10, R11, R12, R13, R14, \
24         L20, L21, L22, L23, L24,                     R20, R21, R22, R23, R24, \
25              L31, L32,                                         R32, R33,      \
26                        L33, L34,                     R30, R31,                \
27                                  L44, L43, R41, R40,                          \
28                                  L42, L41, R43, R42                           \
29         ) \
30         { \
31                 { L00, L01, L02, L03, L04 }, \
32                 { L10, L11, L12, L13, L14 }, \
33                 { L20, L21, L22, L23, L24 }, \
34                 { KC_NO, L31, L32, L33, L34 }, \
35                 { KC_NO, L41, L42, L43, L44 }, \
36 \
37                 { R04, R03, R02, R01, R00 },    \
38                 { R14, R13, R12, R11, R10 },    \
39                 { R24, R23, R22, R21, R20 },    \
40                 { KC_NO, R33, R32, R31, R30 },  \
41                 { KC_NO, R43, R42, R41, R40 }  \
42         }
43 #else
44
45
46
47 #define LAYOUT( \
48         L00, L01, L02, L03, L04,                     R00, R01, R02, R03, R04, \
49         L10, L11, L12, L13, L14,                     R10, R11, R12, R13, R14, \
50         L20, L21, L22, L23, L24,                     R20, R21, R22, R23, R24, \
51              L31, L32,                                         R32, R33,      \
52                        L33, L34,                     R30, R31,                \
53                                  L44, L43, R41, R40,                          \
54                                  L42, L41, R43, R42                           \
55         ) \
56         { \
57                 { R04, R03, R02, R01, R00 },    \
58                 { R14, R13, R12, R11, R10 },    \
59                 { R24, R23, R22, R21, R20 },    \
60                 { KC_NO, R33, R32, R31, R30 },  \
61                 { KC_NO, R43, R42, R41, R40 },  \
62 \
63                 { L00, L01, L02, L03, L04 }, \
64                 { L10, L11, L12, L13, L14 }, \
65                 { L20, L21, L22, L23, L24 }, \
66                 { KC_NO, L31, L32, L33, L34 }, \
67                 { KC_NO, L41, L42, L43, L44 }  \
68 \
69         }
70 #endif
71 #endif