diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/boardsource/beiwagon/keymaps/via/keymap.c |
Diffstat (limited to 'keyboards/boardsource/beiwagon/keymaps/via/keymap.c')
-rw-r--r-- | keyboards/boardsource/beiwagon/keymaps/via/keymap.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/keyboards/boardsource/beiwagon/keymaps/via/keymap.c b/keyboards/boardsource/beiwagon/keymaps/via/keymap.c new file mode 100644 index 000000000..396a0c720 --- /dev/null +++ b/keyboards/boardsource/beiwagon/keymaps/via/keymap.c | |||
@@ -0,0 +1,47 @@ | |||
1 | /* Copyright 2020 Boardsource | ||
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 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | enum layers { | ||
20 | _MAIN, | ||
21 | _RAISE, | ||
22 | _LOWER, | ||
23 | }; | ||
24 | |||
25 | // Readability keycodes | ||
26 | #define LOWER MO(_LOWER) | ||
27 | #define RAISE MO(_RAISE) | ||
28 | |||
29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
30 | |||
31 | [_MAIN] = LAYOUT( | ||
32 | KC_7, KC_8, KC_9, | ||
33 | KC_4, KC_5, KC_6, | ||
34 | KC_1, KC_2, KC_3, | ||
35 | KC_0, KC_PENT,RAISE | ||
36 | ), | ||
37 | |||
38 | [_RAISE] = LAYOUT( | ||
39 | KC_7, KC_8, RGB_TOG, | ||
40 | KC_4, KC_5, RGB_MOD, | ||
41 | KC_1, KC_2, KC_3, | ||
42 | KC_0, KC_PENT,KC_TRNS | ||
43 | |||
44 | ) | ||
45 | |||
46 | }; | ||
47 | |||