]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/dactyl_manuform/dactyl_manuform.h
3dc8405ff9f9b044e87d78c8e773b1a5655e3c65
[qmk_firmware.git] / keyboards / handwired / dactyl_manuform / 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 #define LAYOUT( \
45         L00, L01, L02, L03, L04,                     R00, R01, R02, R03, R04, \
46         L10, L11, L12, L13, L14,                     R10, R11, R12, R13, R14, \
47         L20, L21, L22, L23, L24,                     R20, R21, R22, R23, R24, \
48              L31, L32,                                         R32, R33,      \
49                        L33, L34,                     R30, R31,                \
50                                  L44, L43, R41, R40,                          \
51                                  L42, L41, R43, R42                           \
52         ) \
53         { \
54                 { R04, R03, R02, R01, R00 },    \
55                 { R14, R13, R12, R11, R10 },    \
56                 { R24, R23, R22, R21, R20 },    \
57                 { KC_NO, R33, R32, R31, R30 },  \
58                 { KC_NO, R43, R42, R41, R40 },  \
59 \
60                 { L00, L01, L02, L03, L04 }, \
61                 { L10, L11, L12, L13, L14 }, \
62                 { L20, L21, L22, L23, L24 }, \
63                 { KC_NO, L31, L32, L33, L34 }, \
64                 { KC_NO, L41, L42, L43, L44  }  \
65 \
66         }
67 #endif
68
69 #endif