summaryrefslogtreecommitdiff
path: root/keyboards/squiggle/rev1/rev1.h
diff options
context:
space:
mode:
authorIbnu Daru Aji <ibnuda@users.noreply.github.com>2020-07-25 16:15:35 +0700
committerGitHub <noreply@github.com>2020-07-25 02:15:35 -0700
commit054021e8757a72de4d3fae1f58944e9c922d22d1 (patch)
treee405f5cfaffca40150c022b062a57ca4db3dab5e /keyboards/squiggle/rev1/rev1.h
parentf5c2cd2eb7415418f4d7f87f732b0c6e07afade7 (diff)
downloadqmk_firmware-054021e8757a72de4d3fae1f58944e9c922d22d1.tar.gz
qmk_firmware-054021e8757a72de4d3fae1f58944e9c922d22d1.zip
[Keyboard] Squiggle (#9387)
* new keyboard for squiggle. * added pic and other layout. * updated readme. * following drashna's suggestions. * removed an empty line and right hand as master. * following fauxpark's suggestions. * following manna-harbour's suggestions. * trying to satisfy PR Lint keyboards * manna-harbour forgot to add it. * following fauxparx's suggestions. * following fauxpark's suggestions. * following fauxpark's suggestions.' ' * following fauxpark's suggestions. * following fauxpark''s suggestions. * upated info.json to represent the actual layouts. * following noroadsleft's suggestions.
Diffstat (limited to 'keyboards/squiggle/rev1/rev1.h')
-rw-r--r--keyboards/squiggle/rev1/rev1.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/keyboards/squiggle/rev1/rev1.h b/keyboards/squiggle/rev1/rev1.h
new file mode 100644
index 0000000000..f2751ab78a
--- /dev/null
+++ b/keyboards/squiggle/rev1/rev1.h
@@ -0,0 +1,84 @@
+#pragma once
+
+#include "squiggle.h"
+
+#include "quantum.h"
+
+#define ___ KC_NO
+
+/* This is a shortcut to help you visually see your layout.
+ *
+ * The first section contains all of the arguments representing the physical
+ * layout of the board and position of the keys.
+ *
+ * The second converts the arguments into a two-dimensional array which
+ * represents the switch matrix.
+ */
+#define LAYOUT( \
+ L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
+ L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
+ L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
+ L33, L34, R30, R31 \
+) \
+{ \
+ { L00, L01, L02, L03, L04 }, \
+ { L10, L11, L12, L13, L14 }, \
+ { L20, L21, L22, L23, L24 }, \
+ { ___, ___, ___, L33, L34 }, \
+ { R04, R03, R02, R01, R00 }, \
+ { R14, R13, R12, R11, R10 }, \
+ { R24, R23, R22, R21, R20 }, \
+ { ___, ___, ___, R31, R30 }, \
+}
+
+#define LAYOUT_reversed( \
+ R04, R03, R02, R01, R00, L04, L03, L02, L01, L00, \
+ R14, R13, R12, R11, R10, L14, L13, L12, L11, L10, \
+ R24, R23, R22, R21, R20, L24, L23, L22, L21, L20, \
+ R31, R30, L34, L33 \
+) \
+{ \
+ { L00, L01, L02, L03, L04 }, \
+ { L10, L11, L12, L13, L14 }, \
+ { L20, L21, L22, L23, L24 }, \
+ { ___, ___, ___, L33, L34 }, \
+ { R04, R03, R02, R01, R00 }, \
+ { R14, R13, R12, R11, R10 }, \
+ { R24, R23, R22, R21, R20 }, \
+ { ___, ___, ___, R31, R30 }, \
+}
+
+#define LAYOUT_split_3x5_3(\
+ L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
+ L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
+ L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
+ L32, L33, L34, R30, R31, R32 \
+) \
+{ \
+ { L00, L01, L02, L03, L04 }, \
+ { L10, L11, L12, L13, L14 }, \
+ { L20, L21, L22, L23, L24 }, \
+ { ___, ___, L32, L33, L34 }, \
+ { R04, R03, R02, R01, R00 }, \
+ { R14, R13, R12, R11, R10 }, \
+ { R24, R23, R22, R21, R20 }, \
+ { ___, ___, R32, R31, R30 }, \
+}
+
+#define LAYOUT_complicated(\
+ L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
+ L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
+ L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
+ L33, L34, R30, R31, \
+ L31, L32, R32, R33 \
+) \
+{ \
+ { L00, L01, L02, L03, L04 }, \
+ { L10, L11, L12, L13, L14 }, \
+ { L20, L21, L22, L23, L24 }, \
+ { ___, L31, L32, L33, L34 }, \
+ { R04, R03, R02, R01, R00 }, \
+ { R14, R13, R12, R11, R10 }, \
+ { R24, R23, R22, R21, R20 }, \
+ { ___, R33, R32, R31, R30 }, \
+}