summaryrefslogtreecommitdiffstats
path: root/keyboards/sixkeyboard/sixkeyboard.h
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2018-06-16 17:02:11 +0200
committerDrashna Jaelre <drashna@live.com>2018-06-16 17:02:11 +0200
commiteccfb8d55e47fff65df33622c5494b07eac0daab (patch)
tree3365e464a6955102c143c2e40ee921dc7ea05d2f /keyboards/sixkeyboard/sixkeyboard.h
parent2435a52655979de6dab703545b57875815b0d191 (diff)
downloadqmk_firmware-eccfb8d55e47fff65df33622c5494b07eac0daab.tar.gz
qmk_firmware-eccfb8d55e47fff65df33622c5494b07eac0daab.tar.xz
SixKeyBoard refactor (#3193)
* Refactor: create matrix macro * Readme changes * Configurator support
Diffstat (limited to 'keyboards/sixkeyboard/sixkeyboard.h')
-rw-r--r--keyboards/sixkeyboard/sixkeyboard.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/keyboards/sixkeyboard/sixkeyboard.h b/keyboards/sixkeyboard/sixkeyboard.h
index 66f53bf7e..e0eb896ce 100644
--- a/keyboards/sixkeyboard/sixkeyboard.h
+++ b/keyboards/sixkeyboard/sixkeyboard.h
@@ -3,16 +3,32 @@
#include "quantum.h"
-// This macro is an example of using a non-standard row-column matrix. The
-// keyboard in question had 11 rows and 8 columns, but the rows were not all
-// horizontal, and the columns were not all vertical. For example, row 2
+// This macro is an example of using a non-standard row-column matrix. The
+// keyboard in question had 11 rows and 8 columns, but the rows were not all
+// horizontal, and the columns were not all vertical. For example, row 2
// contained "Print Screen", "N", "M", ",", ".", "/", "Right Shift", and
-// "Left Alt". Column 0 contained "F6", "7", "O", "'", "Q", "D", "B",
+// "Left Alt". Column 0 contained "F6", "7", "O", "'", "Q", "D", "B",
// "Left Alt", "Up Arrow", and "Down Arrow".
//
// The macro makes programming the keys easier and in a more straight-forward
-// manner because it realigns the keys into a 6x15 sensible keyboard layout
+// manner because it realigns the keys into a 6x15 sensible keyboard layout
// instead of the obtuse 11x8 matrix.
-#endif \ No newline at end of file
+/*
+ * ┌───┬───┬───┐
+ * │ A │ B │ C │
+ * ├───┼───┼───┤
+ * │ D │ E │ F │
+ * └───┴───┴───┘
+ */
+#define LAYOUT( \
+ k00, k01, k02, \
+ k10, k11, k12 \
+ ) { \
+ { k00, k01, k02 }, \
+ { k10, k11, k12 } \
+}
+
+
+#endif