diff options
Diffstat (limited to 'keyboards/dc01/numpad/keymaps')
-rw-r--r-- | keyboards/dc01/numpad/keymaps/default/keymap.c | 32 | ||||
-rw-r--r-- | keyboards/dc01/numpad/keymaps/default/readme.md | 3 | ||||
-rw-r--r-- | keyboards/dc01/numpad/keymaps/ortho_5x4/keymap.c | 48 | ||||
-rw-r--r-- | keyboards/dc01/numpad/keymaps/ortho_5x4/readme.md | 3 | ||||
-rw-r--r-- | keyboards/dc01/numpad/keymaps/via/keymap.c | 46 | ||||
-rw-r--r-- | keyboards/dc01/numpad/keymaps/via/readme.md | 3 | ||||
-rwxr-xr-x | keyboards/dc01/numpad/keymaps/via/rules.mk | 1 |
7 files changed, 136 insertions, 0 deletions
diff --git a/keyboards/dc01/numpad/keymaps/default/keymap.c b/keyboards/dc01/numpad/keymaps/default/keymap.c new file mode 100644 index 000000000..8f2fb89b9 --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/default/keymap.c | |||
@@ -0,0 +1,32 @@ | |||
1 | /* Copyright 2018 Yiancar | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT_numpad_5x4( | ||
20 | TG(1), KC_PSLS, KC_PAST, KC_PMNS, | ||
21 | KC_P7, KC_P8, KC_P9, | ||
22 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
23 | KC_P1, KC_P2, KC_P3, | ||
24 | KC_P0, KC_PDOT, KC_PENT ), | ||
25 | |||
26 | [1] = LAYOUT_numpad_5x4( | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
28 | KC_HOME, KC_UP, KC_PGUP, | ||
29 | KC_LEFT, KC_NO, KC_RGHT, KC_TRNS, | ||
30 | KC_END, KC_DOWN, KC_PGDN, | ||
31 | KC_INS, KC_DEL, KC_TRNS), | ||
32 | }; | ||
diff --git a/keyboards/dc01/numpad/keymaps/default/readme.md b/keyboards/dc01/numpad/keymaps/default/readme.md new file mode 100644 index 000000000..3691feb27 --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/default/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # The default keymap for DC01 Numpad | ||
2 | |||
3 | When using the numpad module individually, this keymap will take effect. When using the keyboard as a whole please edit the keymap of the left module. \ No newline at end of file | ||
diff --git a/keyboards/dc01/numpad/keymaps/ortho_5x4/keymap.c b/keyboards/dc01/numpad/keymaps/ortho_5x4/keymap.c new file mode 100644 index 000000000..c8c387646 --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/ortho_5x4/keymap.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /* Copyright 2018 Yiancar | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | enum custom_keycodes { | ||
19 | KC_P00 = SAFE_RANGE | ||
20 | }; | ||
21 | |||
22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
23 | [0] = LAYOUT_ortho_5x4( | ||
24 | TG(1), KC_PSLS, KC_PAST, KC_PMNS, | ||
25 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
26 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
27 | KC_P1, KC_P2, KC_P3, KC_PENT, | ||
28 | KC_P0, KC_P00, KC_PDOT, KC_PENT), | ||
29 | |||
30 | [1] = LAYOUT_ortho_5x4( | ||
31 | _______, _______, _______, _______, | ||
32 | KC_HOME, KC_UP, KC_PGUP, _______, | ||
33 | KC_LEFT, XXXXXXX, KC_RGHT, _______, | ||
34 | KC_END, KC_DOWN, KC_PGDN, _______, | ||
35 | KC_INS, XXXXXXX, KC_DEL, _______) | ||
36 | }; | ||
37 | |||
38 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
39 | if (record->event.pressed) { | ||
40 | switch(keycode) { | ||
41 | case KC_P00: | ||
42 | // types Numpad 0 twice | ||
43 | SEND_STRING(SS_TAP(X_KP_0) SS_TAP(X_KP_0)); | ||
44 | return false; | ||
45 | } | ||
46 | } | ||
47 | return true; | ||
48 | }; | ||
diff --git a/keyboards/dc01/numpad/keymaps/ortho_5x4/readme.md b/keyboards/dc01/numpad/keymaps/ortho_5x4/readme.md new file mode 100644 index 000000000..383e02da8 --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/ortho_5x4/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # The orthopad keymap for DC01 Numpad | ||
2 | |||
3 | When using the numpad module individually, this keymap will take effect. When using the keyboard as a whole please edit the keymap of the left module. \ No newline at end of file | ||
diff --git a/keyboards/dc01/numpad/keymaps/via/keymap.c b/keyboards/dc01/numpad/keymaps/via/keymap.c new file mode 100644 index 000000000..bb4c17c3f --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/via/keymap.c | |||
@@ -0,0 +1,46 @@ | |||
1 | /* Copyright 2018 Yiancar | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT_ortho_5x4( /* Base */ | ||
20 | KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
21 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
22 | KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
23 | KC_P1, KC_P2, KC_P3, KC_PENT, | ||
24 | KC_P0, KC_P0, KC_PDOT, KC_PENT), | ||
25 | |||
26 | [1] = LAYOUT_ortho_5x4( /* Empty for Dynamic keymap */ | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
32 | |||
33 | [2] = LAYOUT_ortho_5x4( /* Empty for Dynamic keymap */ | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
39 | |||
40 | [3] = LAYOUT_ortho_5x4( /* Empty for Dynamic keymap */ | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
46 | }; | ||
diff --git a/keyboards/dc01/numpad/keymaps/via/readme.md b/keyboards/dc01/numpad/keymaps/via/readme.md new file mode 100644 index 000000000..b2d32d9d2 --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/via/readme.md | |||
@@ -0,0 +1,3 @@ | |||
1 | # The default VIA keymap for DC01 Arrow cluster | ||
2 | |||
3 | When using the arrow module individually, this keymap will take effect. When using the keyboard as a whole please edit the keymap of the left module. | ||
diff --git a/keyboards/dc01/numpad/keymaps/via/rules.mk b/keyboards/dc01/numpad/keymaps/via/rules.mk new file mode 100755 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/dc01/numpad/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||