aboutsummaryrefslogtreecommitdiff
path: root/keyboards/boardsource/3x4/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/boardsource/3x4/keymaps')
-rw-r--r--keyboards/boardsource/3x4/keymaps/default/keymap.c26
-rw-r--r--keyboards/boardsource/3x4/keymaps/via/keymap.c25
-rw-r--r--keyboards/boardsource/3x4/keymaps/via/readme.md5
-rw-r--r--keyboards/boardsource/3x4/keymaps/via/rules.mk1
4 files changed, 57 insertions, 0 deletions
diff --git a/keyboards/boardsource/3x4/keymaps/default/keymap.c b/keyboards/boardsource/3x4/keymaps/default/keymap.c
new file mode 100644
index 000000000..67133735f
--- /dev/null
+++ b/keyboards/boardsource/3x4/keymaps/default/keymap.c
@@ -0,0 +1,26 @@
1#include QMK_KEYBOARD_H
2
3enum layers {
4 _MAIN,
5 _RAISE,
6 _LOWER,
7};
8
9// Readability keycodes
10#define LOWER MO(_LOWER)
11#define RAISE MO(_RAISE)
12
13const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
14
15 [_MAIN] = LAYOUT(
16 KC_0, KC_1, KC_4, KC_7,
17 KC_ENT, KC_2, KC_5, KC_8,
18 RAISE, KC_3, KC_6, KC_9
19 ),
20 [_RAISE] = LAYOUT(
21 _______, _______, _______, _______,
22 _______, _______, _______, _______,
23 _______, _______, _______, RESET
24 )
25
26};
diff --git a/keyboards/boardsource/3x4/keymaps/via/keymap.c b/keyboards/boardsource/3x4/keymaps/via/keymap.c
new file mode 100644
index 000000000..a4824f8bf
--- /dev/null
+++ b/keyboards/boardsource/3x4/keymaps/via/keymap.c
@@ -0,0 +1,25 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 LAYOUT(
6 KC_0, KC_1, KC_4, KC_7,
7 KC_ENT, KC_2, KC_5, KC_8,
8 MO(1), KC_3, KC_6, KC_9
9 ),
10 LAYOUT(
11 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
12 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
13 KC_TRNS, KC_TRNS, KC_TRNS, RESET
14 ),
15 LAYOUT(
16 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
17 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
18 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
19 ),
20 LAYOUT(
21 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
22 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
23 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
24 )
25};
diff --git a/keyboards/boardsource/3x4/keymaps/via/readme.md b/keyboards/boardsource/3x4/keymaps/via/readme.md
new file mode 100644
index 000000000..c68eb9cf5
--- /dev/null
+++ b/keyboards/boardsource/3x4/keymaps/via/readme.md
@@ -0,0 +1,5 @@
1# The via keymap for boardsource 3x4 macropad
2
3This folder contains the [VIA](https://caniusevia.com/) configuration for the boardsource 3x4 macropad
4
5Maintained by: [gwillad](https://github.com/gwillad)
diff --git a/keyboards/boardsource/3x4/keymaps/via/rules.mk b/keyboards/boardsource/3x4/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/boardsource/3x4/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file