summaryrefslogtreecommitdiff
path: root/keyboards/synthlabs/solo/solo.h
diff options
context:
space:
mode:
authorNostril <hong.aaron.c@gmail.com>2022-04-12 22:50:38 -0700
committerGitHub <noreply@github.com>2022-04-12 22:50:38 -0700
commite1c777a1c993efa6c739fde71f995ee386456237 (patch)
tree331fe92fadd726a7b8fc987297c0f93cf98aab7f /keyboards/synthlabs/solo/solo.h
parent8cc86490aac59a93ece62229cc93097a17420fa5 (diff)
[Keyboard] Add Synth Labs Solo keyboard (#16103)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/synthlabs/solo/solo.h')
-rw-r--r--keyboards/synthlabs/solo/solo.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/keyboards/synthlabs/solo/solo.h b/keyboards/synthlabs/solo/solo.h
new file mode 100644
index 0000000000..c487446a49
--- /dev/null
+++ b/keyboards/synthlabs/solo/solo.h
@@ -0,0 +1,41 @@
+// Copyright 2022 Aaron Hong (@hongaaronc)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "quantum.h"
+
+#define XXX KC_NO
+
+// This a shortcut to help you visually see your layout.
+// The first section contains all of the arguments
+// The second converts the arguments into a two-dimensional array
+#define LAYOUT_all( \
+ k00, k01, k02, k03, k04, k05, k06, \
+ k10, k11, k12, \
+ k20, k21, k22, k23, k24, k25, k26 \
+) { \
+ { k00, k01, k02, k03, k04, k05, k06 }, \
+ { k10, k11, k12, XXX, XXX, XXX, XXX }, \
+ { k20, k21, k22, k23, k24, k25, k26 } \
+}
+
+#define LAYOUT_left( \
+ k01, k03, k05, \
+ k10, k11, k12, \
+ k20, k22, k24, k26 \
+) { \
+ { XXX, k01, XXX, k03, XXX, k05, XXX }, \
+ { k10, k11, k12, XXX, XXX, XXX, XXX }, \
+ { k20, XXX, k22, XXX, k24, XXX, k26 } \
+}
+
+#define LAYOUT_right( \
+ k25, k23, k21, \
+ k10, k11, k12, \
+ k06, k04, k02, k00 \
+) { \
+ { k00, XXX, k02, XXX, k04, XXX, k06 }, \
+ { k10, k11, k12, XXX, XXX, XXX, XXX }, \
+ { XXX, k21, XXX, k23, XXX, k25, XXX } \
+}