]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/dactyl_manuform/dmote/62key/62key.h
[Keyboard] Added DMOTE (#6087)
[qmk_firmware.git] / keyboards / handwired / dactyl_manuform / dmote / 62key / 62key.h
1 #pragma once
2
3 #include "dactyl_manuform.h"
4 #include "quantum.h"
5
6 #ifdef USE_I2C
7 #include <stddef.h>
8 #ifdef __AVR__
9   #include <avr/io.h>
10   #include <avr/interrupt.h>
11 #endif
12 #endif
13
14 // This uses the same coordinate system as the program that defines
15 // the case model, but not the same coordinates.
16 // Numbers increase going to the right and away from the user on the
17 // right-hand side of the keyboard. This is mirrored for the
18 // left-hand side.
19 // The matrix is constructed for ease of soldering, with the columns
20 // of the thumb cluster extending along the sides of the finger
21 // cluster so that everything can be contained in a 6x6 pattern.
22
23 #define LAYOUT_62key( \
24     LA_20, LA_10, LF_35, LF_25, LF_15, LF_05,            \
25     LF_55, LF_45, LF_34, LF_24, LF_14, LF_04,            \
26     LF_54, LF_44, LF_33, LF_23, LF_13, LF_03,            \
27     LF_53, LF_43, LF_32, LF_22, LF_12,                   \
28                          LF_21,        LT_21, LT_22,     \
29                                     LT_10, LT_11, LT_12, \
30                                        LT_01, LT_02,     \
31                                                          \
32            RF_05, RF_15, RF_25, RF_35, RA_10, RA_20,     \
33            RF_04, RF_14, RF_24, RF_34, RF_45, RF_55,     \
34            RF_03, RF_13, RF_23, RF_33, RF_44, RF_54,     \
35                   RF_12, RF_22, RF_32, RF_43, RF_53,     \
36        RT_22, RT_21,     RF_21,                          \
37     RT_12, RT_11, RT_10,                                 \
38        RT_02, RT_01                                      \
39   ) \
40   { \
41     { LA_20, LA_10, LF_35, LF_25, LF_15, LF_05 }, \
42     { LF_55, LF_45, LF_34, LF_24, LF_14, LF_04 }, \
43     { LF_54, LF_44, LF_33, LF_23, LF_13, LF_03 }, \
44     { LF_53, LF_43, LF_32, LF_22, LF_12, LT_22 }, \
45     { KC_NO, KC_NO, LT_21, LF_21, LT_11, LT_12 }, \
46     { KC_NO, KC_NO, LT_10, KC_NO, LT_01, LT_02 }, \
47                                                   \
48     { RA_20, RA_10, RF_35, RF_25, RF_15, RF_05 }, \
49     { RF_55, RF_45, RF_34, RF_24, RF_14, RF_04 }, \
50     { RF_54, RF_44, RF_33, RF_23, RF_13, RF_03 }, \
51     { RF_53, RF_43, RF_32, RF_22, RF_12, RT_22 }, \
52     { KC_NO, KC_NO, RT_21, RF_21, RT_11, RT_12 }, \
53     { KC_NO, KC_NO, RT_10, KC_NO, RT_01, RT_02 }, \
54   }