aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornpspears <40127181+npspears@users.noreply.github.com>2020-12-03 14:02:21 -0600
committerGitHub <noreply@github.com>2020-12-03 15:02:21 -0500
commita5a65fb1e27dcbcdb3e489f1cbde9e7306522693 (patch)
treed737521ce1790b2b551cf3406b73bc72e36336ca
parentfc85ebecd43ebf9dc9c71c1e956c75bd1652b3a3 (diff)
downloadqmk_firmware-a5a65fb1e27dcbcdb3e489f1cbde9e7306522693.tar.gz
qmk_firmware-a5a65fb1e27dcbcdb3e489f1cbde9e7306522693.zip
Add Via support to Plexus75 PCB (#11027)
* Add Via keymap * Via Enable in Rules.mk * Update config.h added nasp before Plexus75 in PRODUCT to better follow Via naming convention * Update keymap.c changed KC_CTRL to KC_LCTL * Update config.h took out the manu repeat * Update rules.mk * Create rules.mk changed location of rules.mk for supporting Via * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/plexus75/keymaps/via/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Apply suggestions from code review Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r--keyboards/plexus75/keymaps/via/keymap.c101
-rw-r--r--keyboards/plexus75/keymaps/via/rules.mk1
2 files changed, 102 insertions, 0 deletions
diff --git a/keyboards/plexus75/keymaps/via/keymap.c b/keyboards/plexus75/keymaps/via/keymap.c
new file mode 100644
index 000000000..91bdb75d2
--- /dev/null
+++ b/keyboards/plexus75/keymaps/via/keymap.c
@@ -0,0 +1,101 @@
1/*
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#include QMK_KEYBOARD_H
17
18// Defines for task manager and such
19#define CALTDEL LCTL(LALT(KC_DEL))
20#define TSKMGR LCTL(LSFT(KC_ESC))
21
22// Layer shorthand
23enum layer_names {
24 _BASE,
25 _FN,
26 _FN1,
27};
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 /* Base Layer
32 * .-----------------------------------------------------------------------------------------------------------------------------------------'
33 * | ESC | 1 | 2 | 3 | 4 | 5 | [ | ] | ` | 6 | 7 | 8 | 9 | 0 | - |
34 * |-----------+--------+--------+------- +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
35 * | TAB | Q | W | E | R | T | 7 | 8 | 9 | Y | U | I | O | P | BCKSPC |
36 * |-----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
37 * | CTRL | A | S | D | F | G | 4 | 5 | 6 | H | J | K | L | ; | ' |
38 * |-----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+------- +--------+--------+--------|
39 * | LSHIFT | Z | X | C | V | B | 1 | 2 | 3 | N | M | , | . | / | ENTER |
40 * |-----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
41 * | PRNSCRN | LGUI | LALT | TT(_FN) | SPACE | O | SPACE | TT(_FN1) | RALT | RGUI | CAPS |
42 * '-----------------------------------------------------------------------------------------------------------------------------------------'
43 */
44 [_BASE] = LAYOUT_2x2u(
45 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LBRC, KC_RBRC, KC_GRV, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
46 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
47 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
48 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_P1, KC_P2, KC_P3, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
49 KC_PSCR, KC_LGUI, KC_LALT, TT(_FN), KC_SPC, KC_P0, KC_SPC, TT(_FN1), KC_RALT, KC_RGUI, KC_CAPS
50 ),
51
52 /* Function Layer
53 * .-------------------------------------------------------------------------------------------------------------------------------------'
54 * | ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | F13 | DEL |
55 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-------+--------|
56 * | | | MENU | | | | | | | | | | PRT SC | | |
57 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+----------------|
58 * | | | | | | | | | | | | | | RESET | |
59 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+----------------|
60 * | | | | | | | | | | MUTE | VOL DN | VOL UP | \ | | |
61 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+----------------|
62 * | | RESET | RESET | | | | | | | | | | |
63 * '-------------------------------------------------------------------------------------------------------------------------------------'
64 */
65 [_FN] = LAYOUT_2x2u(
66 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, KC_DEL,
67 _______, _______, KC_APP, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______,
68 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, _______,
69 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_BSLS, _______, _______,
70 RESET, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______
71 ),
72
73 /* 2nd Function Layer
74 * .-------------------------------------------------------------------------------------------------------------------------------------'
75 * | | |RGB ON OFF|HUE INC|HUE DEC|SAT INC |SAT DEC | | | | | | | |PRNSCRN |
76 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-------+--------|
77 * | ` | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | |
78 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+----------------|
79 * | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | BCKSPC |
80 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+----------------|
81 * | | | | | | | | | | MUTE | VOL DN | VOL UP | \ | | |
82 * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+----------------|
83 * | | RESET | RESET | | | | | | | | | | |
84 * '-------------------------------------------------------------------------------------------------------------------------------------'
85 */
86 [_FN1] = LAYOUT_2x2u(
87 _______, _______, RGB_TOG, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, _______, KC_PSCR,
88 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
89 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
90 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_BSLS, _______, _______,
91 RESET, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______
92 ),
93
94 [3] = LAYOUT_2x2u(
95 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
96 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
97 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
99 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
100 ),
101};
diff --git a/keyboards/plexus75/keymaps/via/rules.mk b/keyboards/plexus75/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/plexus75/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes