diff options
Diffstat (limited to 'keyboards/ergodash/rev2/rev2.h')
| -rw-r--r-- | keyboards/ergodash/rev2/rev2.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/keyboards/ergodash/rev2/rev2.h b/keyboards/ergodash/rev2/rev2.h new file mode 100644 index 000000000..55135adca --- /dev/null +++ b/keyboards/ergodash/rev2/rev2.h | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | #ifndef REV1_H | ||
| 2 | #define REV1_H | ||
| 3 | |||
| 4 | #include "ergodash.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 | // Standard Keymap | ||
| 22 | // (TRRS jack on the left half is to the right, TRRS jack on the right half is to the left) | ||
| 23 | #define LAYOUT( \ | ||
| 24 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 25 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 26 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 27 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \ | ||
| 28 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \ | ||
| 29 | ) \ | ||
| 30 | { \ | ||
| 31 | { L00, L01, L02, L03, L04, L05, L06 }, \ | ||
| 32 | { L10, L11, L12, L13, L14, L15, L16 }, \ | ||
| 33 | { L20, L21, L22, L23, L24, L25, L26 }, \ | ||
| 34 | { L30, L31, L32, L33, L34, L35, L36 }, \ | ||
| 35 | { L40, L41, L42, L43, L44, L45, L46 }, \ | ||
| 36 | { R06, R05, R04, R03, R02, R01, R00 }, \ | ||
| 37 | { R16, R15, R14, R13, R12, R11, R10 }, \ | ||
| 38 | { R26, R25, R24, R23, R22, R21, R20 }, \ | ||
| 39 | { R36, R35, R34, R33, R32, R31, R30 }, \ | ||
| 40 | { R46, R45, R44, R43, R42, R41, R40 } \ | ||
| 41 | } | ||
| 42 | #else | ||
| 43 | // Keymap with right side flipped | ||
| 44 | // (TRRS jack on both halves are to the right) | ||
| 45 | #define LAYOUT( \ | ||
| 46 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 47 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 48 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 49 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36, \ | ||
| 50 | L40, L41, L42, L43, L44, L45, L46, R40, R41, R42, R43, R44, R45, R46 \ | ||
| 51 | ) \ | ||
| 52 | { \ | ||
| 53 | { L00, L01, L02, L03, L04, L05, L06 }, \ | ||
| 54 | { L10, L11, L12, L13, L14, L15, L16 }, \ | ||
| 55 | { L20, L21, L22, L23, L24, L25, L26 }, \ | ||
| 56 | { L30, L31, L32, L33, L34, L35, L36 }, \ | ||
| 57 | { L40, L41, L42, L43, L44, L45, L46 }, \ | ||
| 58 | { R00, R01, R02, R03, R04, R05, R06 }, \ | ||
| 59 | { R10, R11, R12, R13, R14, R15, R16 }, \ | ||
| 60 | { R20, R21, R22, R23, R24, R25, R26 }, \ | ||
| 61 | { R30, R31, R32, R33, R34, R35, R36 }, \ | ||
| 62 | { R40, R41, R42, R43, R44, R45, R46 } \ | ||
| 63 | } | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #endif | ||
