aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton K. (ai Doge) <abca2004@gmail.com>2022-02-06 11:57:58 -0500
committerGitHub <noreply@github.com>2022-02-06 08:57:58 -0800
commit8da9588bfb6b3ce89c4624ad61d2de7b73274c22 (patch)
tree407c65474a6eb158e968dfb1c24cca871417dc83
parent4974b50a7f654786b2d977a4227532793bffc179 (diff)
downloadqmk_firmware-8da9588bfb6b3ce89c4624ad61d2de7b73274c22.tar.gz
qmk_firmware-8da9588bfb6b3ce89c4624ad61d2de7b73274c22.zip
[Keyboard] via support for eternal_keypad (#16242)
-rw-r--r--keyboards/eternal_keypad/keymaps/via/keymap.c107
-rw-r--r--keyboards/eternal_keypad/keymaps/via/rules.mk2
2 files changed, 109 insertions, 0 deletions
diff --git a/keyboards/eternal_keypad/keymaps/via/keymap.c b/keyboards/eternal_keypad/keymaps/via/keymap.c
new file mode 100644
index 000000000..725cc1224
--- /dev/null
+++ b/keyboards/eternal_keypad/keymaps/via/keymap.c
@@ -0,0 +1,107 @@
1/* Copyright 2021 duckyb
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
18enum layer_names {
19 _BASE = 0,
20 _ARROW,
21 _FN,
22 _ADJUST
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 /* Base Layer
27 * ,-------------------------------------.
28 * | | Esc | 1| 2| 3| 4| 5| 6|
29 * | |-------+---+---+---+---+---+---|
30 * | | Tab | Q| W| E| R| T| 7|
31 * |----||-------+---+---+---+---+---+---|
32 * | F13|| LCtrl | A| S| D| F| G| 8|
33 * |----||-------+---+---+---+---+---+---|
34 * | F14|| Shif | Z| X| C| V| B| 9|
35 * |----||-------------------------------|
36 * | F15|| AltTab| _FN |Alt| Space | 0|
37 * `----'`-------------------------------'
38 */
39 [_BASE] = LAYOUT(
40 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
41 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_7,
42 KC_F13, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_8,
43 KC_F14, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_9,
44 KC_F15, KC_ENT, OSL(_FN), KC_LALT, KC_SPC, LT(_ARROW, KC_0)
45 ),
46 /* Arrows Layer
47 * ,-----------------------------------------.
48 * | | | | | | | | |
49 * | |-------+----+----+-----+---+---+---|
50 * | | | | UP| | | | |
51 * |----||-------+----+----+-----+---+---+---|
52 * | || |LEFT|DOWN|RIGHT| | | |
53 * |----||-------+----+----+-----+---+---+---|
54 * | || | | | | | | |
55 * |----||-----------------------------------|
56 * | RST|| | | | | |
57 * `----'`-----------------------------------'
58 */
59 [_ARROW] = LAYOUT(
60 _______, _______, _______, _______, _______, _______, _______,
61 _______, _______, KC_UP, _______, _______, _______, _______,
62 _______, _______, KC_LEFT,KC_DOWN, KC_RIGHT, _______, _______, _______,
63 _______, _______, _______, _______, _______, _______, _______, _______,
64 _______, _______, MO(_ADJUST), _______, _______, _______
65 ),
66 /* Function Layer
67 * ,-------------------------------------.
68 * | | | F1| F2| F3| F4| F5| F6|
69 * | |-------+---+---+---+---+---+---|
70 * | | | P| O| I| U| Y| F7|
71 * |----||-------+---+---+---+---+---+---|
72 * | || Bspc | ;| L| K| J| H| F8|
73 * |----||-------+---+---+---+---+---+---|
74 * | || |Gui| M| N|F12|F11| F9|
75 * |----||-------------------------------|
76 * | || | | | |F10|
77 * `----'`-------------------------------'
78 */
79 [_FN] = LAYOUT(
80 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
81 _______, KC_P, KC_O, KC_I, KC_U, KC_Y, KC_F7,
82 _______, KC_BSPC, KC_SCLN, KC_L, KC_K, KC_J, KC_H, KC_F8,
83 _______, _______, KC_LGUI, KC_M, KC_N, KC_F12, KC_F11, KC_F9,
84 _______, _______, _______, _______, _______, KC_F10
85 ),
86
87 /* Adjust Layer
88 * ,-----------------------------------------.
89 * | | | | | | | | |
90 * | |-------+----+----+-----+---+---+---|
91 * | | | | | | | | |
92 * |----||-------+----+----+-----+---+---+---|
93 * | || | | | | | | |
94 * |----||-------+----+----+-----+---+---+---|
95 * | || | | | | | | |
96 * |----||-----------------------------------|
97 * | RST|| | | | | |
98 * `----'`-----------------------------------'
99 */
100 [_ADJUST] = LAYOUT(
101 _______, _______, _______, _______, _______, _______, _______,
102 _______, _______, _______, _______, _______, _______, _______,
103 _______, _______, _______, _______, _______, _______, _______, _______,
104 _______, _______, _______, _______, _______, _______, _______, _______,
105 RESET, _______, _______, _______, _______, _______
106 )
107};
diff --git a/keyboards/eternal_keypad/keymaps/via/rules.mk b/keyboards/eternal_keypad/keymaps/via/rules.mk
new file mode 100644
index 000000000..ca9fed0e6
--- /dev/null
+++ b/keyboards/eternal_keypad/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1LTO_ENABLE = yes
2VIA_ENABLE = yes