aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodash/mini/mini.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodash/mini/mini.h')
-rw-r--r--keyboards/ergodash/mini/mini.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/keyboards/ergodash/mini/mini.h b/keyboards/ergodash/mini/mini.h
new file mode 100644
index 000000000..74e574170
--- /dev/null
+++ b/keyboards/ergodash/mini/mini.h
@@ -0,0 +1,60 @@
1#ifndef MINI_H
2#define MINI_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 ) \
29 { \
30 { L00, L01, L02, L03, L04, L05, L06 }, \
31 { L10, L11, L12, L13, L14, L15, L16 }, \
32 { L20, L21, L22, L23, L24, L25, L26 }, \
33 { L30, L31, L32, L33, L34, L35, L36 }, \
34 { R06, R05, R04, R03, R02, R01, R00 }, \
35 { R16, R15, R14, R13, R12, R11, R10 }, \
36 { R26, R25, R24, R23, R22, R21, R20 }, \
37 { R36, R35, R34, R33, R32, R31, R30 }, \
38 }
39#else
40// Keymap with right side flipped
41// (TRRS jack on both halves are to the right)
42#define LAYOUT( \
43 L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \
44 L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \
45 L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \
46 L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36 \
47 ) \
48 { \
49 { L00, L01, L02, L03, L04, L05, L06 }, \
50 { L10, L11, L12, L13, L14, L15, L16 }, \
51 { L20, L21, L22, L23, L24, L25, L26 }, \
52 { L30, L31, L32, L33, L34, L35, L36 }, \
53 { R00, R01, R02, R03, R04, R05, R06 }, \
54 { R10, R11, R12, R13, R14, R15, R16 }, \
55 { R20, R21, R22, R23, R24, R25, R26 }, \
56 { R30, R31, R32, R33, R34, R35, R36 }, \
57 }
58#endif
59
60#endif