]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Keyboard: Enable community ortho 4x12 layouts for lets split eh (#4487)
authorzvecr <z.zvecr@gmail.com>
Mon, 26 Nov 2018 22:58:22 +0000 (22:58 +0000)
committerDrashna Jaelre <drashna@live.com>
Mon, 26 Nov 2018 22:58:22 +0000 (14:58 -0800)
* Enable ortho_4x12 community layouts for lets_split_eh

* Keymap build fixes now that ortho_4x12 is enabled

* Keymap build fixes now that ortho_4x12 is enabled

keyboards/lets_split_eh/keymaps/doxish_dvorak/keymap.c
keyboards/lets_split_eh/lets_split_eh.c
keyboards/lets_split_eh/rules.mk

index 8976081542d86956bcad1d0fb260c89985c712d5..721312623e3045063471b44651bf0f8ca09e0f5d 100644 (file)
@@ -1,6 +1,4 @@
-#include "eeconfig.h"
-
-extern keymap_config_t keymap_config;
+#include QMK_KEYBOARD_H
 
 // Each layer gets a name for readability, which is then used in the keymap matrix below.
 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
index d5a312085d1203a941657ebceeb38a7b4243b89c..7249f54cf262626ab2bd4e3fed6641cc9e2304e3 100644 (file)
@@ -1 +1,16 @@
 #include "lets_split_eh.h"
+
+#ifdef SWAP_HANDS_ENABLE
+__attribute__ ((weak))
+const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
+
+  {{0, 4}, {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}},
+  {{0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}},
+  {{0, 6}, {1, 6}, {2, 6}, {3, 6}, {4, 6}, {5, 6}},
+  {{0, 7}, {1, 7}, {2, 7}, {3, 7}, {4, 7}, {5, 7}},
+  {{0, 0}, {1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}},
+  {{0, 1}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}},
+  {{0, 2}, {1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2}},
+  {{0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}},
+};
+#endif
index dffeb9fa3c011bd32c50d9ae3cc6ee4b7dca6c48..99b1ba23449e24e9ca5b93c0bd4cb49069c633be 100644 (file)
@@ -67,4 +67,6 @@ SPLIT_KEYBOARD = yes
 # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
 SLEEP_LED_ENABLE = no    # Breathing sleep LED during USB suspend
 
+LAYOUTS = ortho_4x12
+
 DEFAULT_FOLDER = lets_split_eh/eh