aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kingly_keys
diff options
context:
space:
mode:
authorBrandon Schlack <brandonschlack@gmail.com>2020-11-04 21:55:03 -0800
committerGitHub <noreply@github.com>2020-11-04 21:55:03 -0800
commitf12dcb0659918657d35dc599e69f1aec43a22e97 (patch)
tree50e98a01f9103a82574390879f9989ef27b47e98 /keyboards/kingly_keys
parent262a60733483a38ed998b6dc6495f748ba6b71b0 (diff)
downloadqmk_firmware-f12dcb0659918657d35dc599e69f1aec43a22e97.tar.gz
qmk_firmware-f12dcb0659918657d35dc599e69f1aec43a22e97.zip
[Keymap] add brandonschlack userspace and keymaps (#10411)
Diffstat (limited to 'keyboards/kingly_keys')
-rw-r--r--keyboards/kingly_keys/romac/keymaps/brandonschlack/keymap.c67
-rw-r--r--keyboards/kingly_keys/romac/keymaps/brandonschlack/rules.mk8
2 files changed, 75 insertions, 0 deletions
diff --git a/keyboards/kingly_keys/romac/keymaps/brandonschlack/keymap.c b/keyboards/kingly_keys/romac/keymaps/brandonschlack/keymap.c
new file mode 100644
index 000000000..b0e4d5214
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/brandonschlack/keymap.c
@@ -0,0 +1,67 @@
1/* Copyright 2019 Brandon Schlack
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#include "brandonschlack.h"
18
19enum romac_layers {
20 NUMPAD = 0,
21 FN,
22 NUMLOCK,
23 KARABINER
24};
25
26#define DF_NMPD DF(NUMPAD)
27#define DF_NMLK DF(NUMLOCK)
28#undef DF_KBNR
29#define DF_KBNR DF(KARABINER)
30
31const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32
33 [NUMPAD] = LAYOUT(
34 KC_P7, KC_P8, KC_P9, \
35 KC_P4, KC_P5, KC_P6, \
36 KC_P1, KC_P2, KC_P3, \
37 OSL(FN), KC_P0, KC_PDOT \
38 ),
39
40 [FN] = LAYOUT(
41 KC_PSLS, KC_PAST, KC_BSPC, \
42 KC_TRNS, KC_TRNS, KC_PMNS, \
43 DF_NMLK, DF_KBNR, KC_PPLS, \
44 KC_TRNS, TG_ADJT, KC_PENT \
45 ),
46
47 [NUMLOCK] = LAYOUT(
48 KC_HOME, KC_UP, KC_PGUP, \
49 KC_LEFT, CMD_TAB, KC_RGHT, \
50 KC_END, KC_DOWN, KC_PGDN, \
51 DF_NMPD, KC_INS, KC_DEL \
52 ),
53
54 [KARABINER] = LAYOUT(
55 KC_F13, KC_F14, KC_F15, \
56 KC_F16, KC_F17, KC_F18, \
57 KC_F19, KC_F20, KC_F21, \
58 LT(_ADJUST,KC_F22), KC_F23, KC_F24 \
59 ),
60
61 [_ADJUST] = LAYOUT(
62 QM_MAKE, EEP_RST, XXXXXXX, \
63 XXXXXXX, XXXXXXX, XXXXXXX, \
64 DF_NMPD, DF_NMLK, DF_KBNR, \
65 KC_TRNS, XXXXXXX, XXXXXXX \
66 )
67};
diff --git a/keyboards/kingly_keys/romac/keymaps/brandonschlack/rules.mk b/keyboards/kingly_keys/romac/keymaps/brandonschlack/rules.mk
new file mode 100644
index 000000000..719dbee40
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/brandonschlack/rules.mk
@@ -0,0 +1,8 @@
1# Use macropad-specific defines, layers, functions. Flash bootloader with QM_MAKE
2IS_MACROPAD = yes
3
4# Use dfu bootloader for Elite-C
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# TAP_DANCE_ENABLE = yes # Use tap dance