summaryrefslogtreecommitdiffstats
path: root/keyboards/4by3/keymaps
diff options
context:
space:
mode:
authorElias <eliassjogreen1@gmail.com>2019-08-23 23:18:37 +0200
committernoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-08-23 14:18:37 -0700
commite0f91f37c4b944b328f9e022b18f2f1ad702fcf4 (patch)
treeb92f075e3b0aba0ebdc256c0e2c067025e384433 /keyboards/4by3/keymaps
parentae44ec9820cdf5348e802c9bae3af34557617685 (diff)
Added 4by3 keyboard (#6547)
* Added 4by3 keyboard * Added DEVICE_VER and DESCRIPTION * Removed F_CPU, F_USB, ARCH, and OPT_DEFS * Add 3 new LAYOUT macros for orientations and fixes * Apply suggestions from code review Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Added comments to 4by3 and changed info.json * Update keyboards/4by3/4by3.h Co-Authored-By: fauxpark <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/4by3/keymaps')
-rw-r--r--keyboards/4by3/keymaps/arrowpad/keymap.c12
-rw-r--r--keyboards/4by3/keymaps/default/keymap.c9
-rw-r--r--keyboards/4by3/keymaps/default/readme.md3
-rw-r--r--keyboards/4by3/keymaps/funcpad_horizontal/keymap.c9
-rw-r--r--keyboards/4by3/keymaps/funcpad_vertical/keymap.c12
-rw-r--r--keyboards/4by3/keymaps/numpad_horizontal/keymap.c9
-rw-r--r--keyboards/4by3/keymaps/numpad_vertical/keymap.c12
7 files changed, 66 insertions, 0 deletions
diff --git a/keyboards/4by3/keymaps/arrowpad/keymap.c b/keyboards/4by3/keymaps/arrowpad/keymap.c
new file mode 100644
index 0000000000..df803a35e6
--- /dev/null
+++ b/keyboards/4by3/keymaps/arrowpad/keymap.c
@@ -0,0 +1,12 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Change 'LAYOUT_vertical_right' to 'LAYOUT_vertical_left'
+ to change the side where the pro micro usb port is. */
+ [0] = LAYOUT_vertical_right(
+ KC_INS , KC_HOME , KC_PGUP ,
+ KC_DEL , KC_END , KC_PGDN ,
+ KC_PSCR , KC_UP , KC_PAUS ,
+ KC_LEFT , KC_DOWN , KC_RGHT
+ )
+};
diff --git a/keyboards/4by3/keymaps/default/keymap.c b/keyboards/4by3/keymaps/default/keymap.c
new file mode 100644
index 0000000000..f348dc84fb
--- /dev/null
+++ b/keyboards/4by3/keymaps/default/keymap.c
@@ -0,0 +1,9 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_horizontal(
+ KC_VOLU , _______ , _______ , _______ ,
+ KC_MUTE , KC_MPRV , KC_MPLY , KC_MNXT ,
+ KC_VOLD , _______ , _______ , _______
+ )
+};
diff --git a/keyboards/4by3/keymaps/default/readme.md b/keyboards/4by3/keymaps/default/readme.md
new file mode 100644
index 0000000000..281dfd5463
--- /dev/null
+++ b/keyboards/4by3/keymaps/default/readme.md
@@ -0,0 +1,3 @@
+# The default 4by3 keymap
+
+![The default 4by3 keymap](https://i.imgur.com/E4OlQAs.png)
diff --git a/keyboards/4by3/keymaps/funcpad_horizontal/keymap.c b/keyboards/4by3/keymaps/funcpad_horizontal/keymap.c
new file mode 100644
index 0000000000..287d125ef1
--- /dev/null
+++ b/keyboards/4by3/keymaps/funcpad_horizontal/keymap.c
@@ -0,0 +1,9 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_horizontal(
+ KC_F1 , KC_F2 , KC_F3 , KC_F4 ,
+ KC_F5 , KC_F6 , KC_F7 , KC_F8 ,
+ KC_F9 , KC_F10 , KC_F11 , KC_F12
+ )
+};
diff --git a/keyboards/4by3/keymaps/funcpad_vertical/keymap.c b/keyboards/4by3/keymaps/funcpad_vertical/keymap.c
new file mode 100644
index 0000000000..c345f28240
--- /dev/null
+++ b/keyboards/4by3/keymaps/funcpad_vertical/keymap.c
@@ -0,0 +1,12 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Change 'LAYOUT_vertical_right' to 'LAYOUT_vertical_left'
+ to change the side where the pro micro usb port is. */
+ [0] = LAYOUT_vertical_right(
+ KC_F1 , KC_F2 , KC_F3 ,
+ KC_F4 , KC_F5 , KC_F6 ,
+ KC_F7 , KC_F8 , KC_F9 ,
+ KC_F10 , KC_F11 , KC_F12
+ )
+};
diff --git a/keyboards/4by3/keymaps/numpad_horizontal/keymap.c b/keyboards/4by3/keymaps/numpad_horizontal/keymap.c
new file mode 100644
index 0000000000..c1195b0bc9
--- /dev/null
+++ b/keyboards/4by3/keymaps/numpad_horizontal/keymap.c
@@ -0,0 +1,9 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_horizontal(
+ KC_P1 , KC_P2 , KC_P3 , KC_P4 ,
+ KC_P5 , KC_P6 , KC_P7 , KC_P8 ,
+ KC_P9 , KC_P0 , KC_BSPC , KC_ENT
+ ),
+};
diff --git a/keyboards/4by3/keymaps/numpad_vertical/keymap.c b/keyboards/4by3/keymaps/numpad_vertical/keymap.c
new file mode 100644
index 0000000000..7705ea9b83
--- /dev/null
+++ b/keyboards/4by3/keymaps/numpad_vertical/keymap.c
@@ -0,0 +1,12 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Change 'LAYOUT_vertical_right' to 'LAYOUT_vertical_left'
+ to change the side where the pro micro usb port is. */
+ [0] = LAYOUT_vertical_right(
+ KC_P1 , KC_P2 , KC_P3 ,
+ KC_P4 , KC_P5 , KC_P6 ,
+ KC_P7 , KC_P8 , KC_P9 ,
+ KC_BSPC , KC_P0 , KC_ENT
+ ),
+};