summaryrefslogtreecommitdiffstats
path: root/keyboards/40percentclub/foobar
diff options
context:
space:
mode:
authorzvecr <z.zvecr@gmail.com>2018-11-12 21:02:28 +0100
committerDrashna Jaelre <drashna@live.com>2018-11-12 21:02:28 +0100
commitb173c05cc25e9394c6e50081c1af707443950104 (patch)
tree36d750ffd81027e29d2dd8ab68274a4a9c4009cd /keyboards/40percentclub/foobar
parent746005acba3a3522eaa2bf1c8014644e1a60c5df (diff)
downloadqmk_firmware-b173c05cc25e9394c6e50081c1af707443950104.tar.gz
qmk_firmware-b173c05cc25e9394c6e50081c1af707443950104.tar.xz
Tidy 40percentclub boards (#4403)
* Remove unnecessary re-definitions for XXXXXXX and _______ * Update 6lit to use KC_NO in layout macros * Update rules.mk to follow current template * Remove use of deprecated function action_get_macro - unused and contents were from old template * Remove use of deprecated function action_get_macro - all code was commented out * Remove use of deprecated function action_get_macro - convert macro to use process_record_user * Convert keymap to consistent use of _______ * fix use of old style header guards * Swap KC_NO for XXXXXXX macro since the swap to the macro for KC_TRANS * Resolve use of ?= in rules.mk files * Remove duplication of rules.mk and config.h in gherkin mjt keymap * Remove unnecessary #includes * Align layout macros so foobar can use gherkin keymaps * Align 6lit layout macros with foobar * Remove ifndef QUANTUM_DIR from keymaps
Diffstat (limited to 'keyboards/40percentclub/foobar')
-rw-r--r--keyboards/40percentclub/foobar/foobar.h9
-rw-r--r--keyboards/40percentclub/foobar/keymaps/default/keymap.c1
-rw-r--r--keyboards/40percentclub/foobar/rules.mk2
3 files changed, 7 insertions, 5 deletions
diff --git a/keyboards/40percentclub/foobar/foobar.h b/keyboards/40percentclub/foobar/foobar.h
index fc49c72aa..8cf2e384f 100644
--- a/keyboards/40percentclub/foobar/foobar.h
+++ b/keyboards/40percentclub/foobar/foobar.h
@@ -19,7 +19,7 @@
#define ___ KC_NO
#ifndef FLIP_HALF
-#define LAYOUT_split( \
+#define LAYOUT_ortho_3x10( \
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 \
@@ -32,7 +32,7 @@
{ R24, R23, R22, R21, R20 } \
}
#else
-#define LAYOUT_split( \
+#define LAYOUT_ortho_3x10( \
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 \
@@ -46,7 +46,7 @@
}
#endif
-#define LAYOUT_macro( \
+#define LAYOUT_ortho_3x5( \
L00, L01, L02, L03, L04, \
L10, L11, L12, L13, L14, \
L20, L21, L22, L23, L24 \
@@ -59,7 +59,8 @@
{ ___, ___, ___, ___, ___ } \
}
-#define LAYOUT LAYOUT_macro
+#define LAYOUT_macro LAYOUT_ortho_3x5
+#define LAYOUT_split LAYOUT_ortho_3x10
#ifdef USE_I2C
#error "I2C not Supported"
diff --git a/keyboards/40percentclub/foobar/keymaps/default/keymap.c b/keyboards/40percentclub/foobar/keymaps/default/keymap.c
index b750c6185..774f1e854 100644
--- a/keyboards/40percentclub/foobar/keymaps/default/keymap.c
+++ b/keyboards/40percentclub/foobar/keymaps/default/keymap.c
@@ -15,7 +15,6 @@
*/
#include QMK_KEYBOARD_H
-#define _______ KC_TRNS
#define FN1_Q LT(1, KC_Q)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
diff --git a/keyboards/40percentclub/foobar/rules.mk b/keyboards/40percentclub/foobar/rules.mk
index 327565165..155a7daac 100644
--- a/keyboards/40percentclub/foobar/rules.mk
+++ b/keyboards/40percentclub/foobar/rules.mk
@@ -81,3 +81,5 @@ HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
# Enable generic behavior for split boards
SPLIT_KEYBOARD = yes
+
+LAYOUTS = ortho_3x10