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