summaryrefslogtreecommitdiff
path: root/config/keypos_defs/keypos_kj_planck.h
diff options
context:
space:
mode:
Diffstat (limited to 'config/keypos_defs/keypos_kj_planck.h')
-rw-r--r--config/keypos_defs/keypos_kj_planck.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/config/keypos_defs/keypos_kj_planck.h b/config/keypos_defs/keypos_kj_planck.h
new file mode 100644
index 0000000..a3f2e32
--- /dev/null
+++ b/config/keypos_defs/keypos_kj_planck.h
@@ -0,0 +1,59 @@
+/* 48 KEY MATRIX / LAYOUT MAPPING
+
+ ╭────────────────────────┬────────────────────────╮ ╭─────────────────────────┬─────────────────────────╮
+ │ 0 1 2 3 4 5 │ 6 7 8 9 10 11 │ │ LT5 LT4 LT3 LT2 LT1 LT0 │ RT0 RT1 RT2 RT3 RT4 RT5 │
+ │ 12 13 14 15 16 17 │ 18 19 20 21 22 23 │ │ LM5 LM4 LM3 LM2 LM1 LM0 │ RM0 RM1 RM2 RM3 RM4 RM5 │
+ │ 24 25 26 27 28 29 │ 30 31 32 33 34 35 │ │ LB5 LB4 LB3 LB2 LB1 LB0 │ RB0 RB1 RB2 RB3 RB4 RB5 │
+ │ 36 37 38 39 40 41 │ 42 43 44 45 46 47 │ │ LH5 LH4 LH3 LH2 LH1 LH0 │ RH0 RH1 RH2 RH3 RH4 RH5 │
+ ╰────────────────────────┴────────────────────────╯ ╰─────────────────────────┴─────────────────────────╯ */
+
+#pragma once
+
+#define LT0 4 // left-top row
+#define LT1 3
+#define LT2 2
+#define LT3 1
+#define LT4 0
+
+#define RT0 7 // right-top row
+#define RT1 8
+#define RT2 9
+#define RT3 10
+#define RT4 11
+
+#define LM0 16 // left-middle row
+#define LM1 15
+#define LM2 14
+#define LM3 13
+#define LM4 12
+
+#define RM0 19 // right-middle row
+#define RM1 20
+#define RM2 21
+#define RM3 22
+#define RM4 23
+
+#define LB0 28 // left-bottom row
+#define LB1 27
+#define LB2 26
+#define LB3 25
+#define LB4 24
+
+#define RB0 31 // right-bottom row
+#define RB1 32
+#define RB2 33
+#define RB3 34
+#define RB4 35
+
+#define LH0 40 // left thumb keys
+#define LH1 39
+#define LH2 38
+#define LH3 37
+#define LH4 36
+
+#define RH0 43 // right thumb keys
+#define RH1 44
+#define RH2 45
+#define RH3 46
+#define RH4 47
+