aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-01-19 02:10:55 +0000
committerQMK Bot <hello@qmk.fm>2021-01-19 02:10:55 +0000
commitbfdedbe5b240300270c6dd7b36a68d5e10ad47f7 (patch)
treea4deb71c496c59b0dc96201df9018b830610b0fe /layouts
parent732e80e3fe4284090bd931bcbd20f391f711736d (diff)
parent993982a9853cccaa0224f39cfa4837fac147a6e0 (diff)
downloadqmk_firmware-bfdedbe5b240300270c6dd7b36a68d5e10ad47f7.tar.gz
qmk_firmware-bfdedbe5b240300270c6dd7b36a68d5e10ad47f7.zip
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'layouts')
-rw-r--r--layouts/community/ortho_4x12/peej/keymap.c73
-rw-r--r--layouts/community/ortho_5x12/peej/keymap.c54
-rw-r--r--layouts/community/ortho_5x14/peej/keymap.c88
3 files changed, 215 insertions, 0 deletions
diff --git a/layouts/community/ortho_4x12/peej/keymap.c b/layouts/community/ortho_4x12/peej/keymap.c
new file mode 100644
index 000000000..d78f03da4
--- /dev/null
+++ b/layouts/community/ortho_4x12/peej/keymap.c
@@ -0,0 +1,73 @@
1/* Copyright 2020 Paul James
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#define USE_2U_SPACE 1
18
19#include QMK_KEYBOARD_H
20#include "peej.h"
21
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23
24[_BASE] = LAYOUT_PEEJ(
25 BASE_ROW_2,
26 BASE_ROW_3,
27 BASE_ROW_4,
28 BASE_ROW_5
29),
30
31[_SYMBOL] = LAYOUT_PEEJ(
32 SYMBOL_ROW_2,
33 SYMBOL_ROW_3,
34 SYMBOL_ROW_4,
35 SYMBOL_ROW_5
36),
37
38[_FUNCTION] = LAYOUT_PEEJ(
39 FUNCTION_ROW_2,
40 FUNCTION_ROW_3,
41 FUNCTION_ROW_4,
42 FUNCTION_ROW_5
43),
44
45[_ADJUST] = LAYOUT_PEEJ(
46 ADJUST_ROW_2,
47 ADJUST_ROW_3,
48 ADJUST_ROW_4,
49 ADJUST_ROW_5
50)
51
52};
53
54layer_state_t layer_state_set_user(layer_state_t state) {
55#if defined(LED_RED) && defined(LED_GREEN)
56 writePinLow(LED_RED);
57 writePinLow(LED_GREEN);
58
59 switch (biton32(state)) {
60 case _FUNCTION:
61 writePinHigh(LED_RED);
62 break;
63 case _SYMBOL:
64 writePinHigh(LED_GREEN);
65 break;
66 case _ADJUST:
67 writePinHigh(LED_RED);
68 writePinHigh(LED_GREEN);
69 break;
70 }
71#endif
72 return state;
73}
diff --git a/layouts/community/ortho_5x12/peej/keymap.c b/layouts/community/ortho_5x12/peej/keymap.c
new file mode 100644
index 000000000..95b1d43ac
--- /dev/null
+++ b/layouts/community/ortho_5x12/peej/keymap.c
@@ -0,0 +1,54 @@
1/* Copyright 2020 Paul James
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#include "peej.h"
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22[_BASE] = LAYOUT_PEEJ(
23 BASE_ROW_1,
24 BASE_ROW_2,
25 BASE_ROW_3,
26 BASE_ROW_4,
27 BASE_ROW_5
28),
29
30[_SYMBOL] = LAYOUT_PEEJ(
31 SYMBOL_ROW_1,
32 SYMBOL_ROW_2,
33 SYMBOL_ROW_3,
34 SYMBOL_ROW_4,
35 SYMBOL_ROW_5
36),
37
38[_FUNCTION] = LAYOUT_PEEJ(
39 FUNCTION_ROW_1,
40 FUNCTION_ROW_2,
41 FUNCTION_ROW_3,
42 FUNCTION_ROW_4,
43 FUNCTION_ROW_5
44),
45
46[_ADJUST] = LAYOUT_PEEJ(
47 ADJUST_ROW_1,
48 ADJUST_ROW_2,
49 ADJUST_ROW_3,
50 ADJUST_ROW_4,
51 ADJUST_ROW_5
52)
53
54};
diff --git a/layouts/community/ortho_5x14/peej/keymap.c b/layouts/community/ortho_5x14/peej/keymap.c
new file mode 100644
index 000000000..3abd41853
--- /dev/null
+++ b/layouts/community/ortho_5x14/peej/keymap.c
@@ -0,0 +1,88 @@
1/* Copyright 2020 Paul James
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#include "peej.h"
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21
22#define MODS KC_LCTL, KC_LALT, KC_LGUI, FUNCT
23#define ARROWS KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT
24
25/*
26 * ,-----------------------------------------------------------------------------------------------------------------------------.
27 * | ESC | 1 | 2 | 3 | 4 | 5 | - | = | 6 | 7 | 8 | 9 | 0 | BACK |
28 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
29 * | TAB | Q | W | E | R | T | [ | ] | Y | U | I | O | P | \ |
30 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
31 * | ESC | A | S | D | F | G | { | } | H | J | K | L | ; | ' |
32 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
33 * | SHIFT | Z | X | C | V | B | ( | ) | N | M | , | . | / | ENTER |
34 * `--------+--------+--------+--------+--------+-----------------+-----------------+--------+--------+--------+--------+--------'
35 * | CTRL | ALT | CMD | FUNC | SPACE | BACKSPACE | LEFT | DOWN | UP | RIGHT |
36 * `-----------------------------------------------------------------------------------------------------------'
37*/
38[_BASE] = LAYOUT_PEEJ_hhkb(
39 KC_GESC, BASE_ROW_1_L, BASE_ROW_1_M, BASE_ROW_1_R, KC_BSPC,
40 KC_TAB, BASE_ROW_2_L, BASE_ROW_2_M, BASE_ROW_2_R, KC_BSLS,
41 CTLESC, BASE_ROW_3_L, BASE_ROW_3_M, BASE_ROW_3_R, KC_QUOT,
42 KC_LSFT, BASE_ROW_4_L, BASE_ROW_4_M, BASE_ROW_4_R, KC_ENT,
43 MODS, KC_SPC, KC_BSPC, ARROWS
44),
45
46/*
47 * ,-----------------------------------------------------------------------------------------------------------------------------.
48 * | LOCK | F1 | F2 | F3 | F4 | F5 | F11 | F12 | F6 | F7 | F8 | F9 | F10 | DEL |
49 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
50 * | ADJUST | | | | | | | | | HOME | UP | PGUP | | |
51 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
52 * | SHIFT | CTRL | ALT | CMD | | | | | | LEFT | DOWN | RIGHT | | |
53 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
54 * | | | | | | | | | | END | SHIFT | PGDN | | |
55 * `--------+--------+--------+--------+--------+-----------------+-----------------+--------+--------+--------+--------+--------'
56 * | | | | | | ENTER | HOME | PGDN | PGUP | END |
57 * `-----------------------------------------------------------------------------------------------------------'
58 */
59[_FUNCTION] = LAYOUT_PEEJ_hhkb(
60 LOCK, FUNCTION_ROW_1_L, ______2, FUNCTION_ROW_1_R, KC_DEL,
61 ADJUST, ______5, ______2, FUNCTION_ROW_2_R, _______,
62 KC_LSFT, FUNCTION_ROW_3_L, ______2, FUNCTION_ROW_3_R, _______,
63 _______, ______5, ______2, FUNCTION_ROW_4_R, _______,
64 ______4, _______, KC_ENT, ______4
65),
66
67/*
68 * ,----------------------------------------Backlight-------------------------RGB-----Bright---Sat------Hue----------------------.
69 * | LOCK | RESET | | | STEP | TOGGLE | | | TOGGLE | UP | UP | UP | | LOCK |
70 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
71 * | | | | | | | | | MODE | DOWN | DOWN | DOWN | | |
72 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
73 * | | | | | | | | | | | | | | |
74 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
75 * | | Norm | Swap | | | | | | | | | | | |
76 * `--------+--------+--------+--------+--------+-----------------+-----------------+--------+--------+--------+--------+--------'
77 * | | | | | | | | | | |
78 * `-----------------------------------------------------------------------------------------------------------'
79 */
80[_ADJUST] = LAYOUT_PEEJ_hhkb(
81 LOCK, ADJUST_ROW_2_L, XXXXXXX, XXXXXXX, ADJUST_ROW_2_R, LOCK,
82 XXXXXXX, EMPTY_ROW, XXXXXXX, XXXXXXX, ADJUST_ROW_3_R, XXXXXXX,
83 XXXXXXX, EMPTY_ROW, KC_MPLY, KC_MUTE, EMPTY_ROW, XXXXXXX,
84 XXXXXXX, ADJUST_ROW_4_L, KC_VOLD, KC_VOLU, EMPTY_ROW, _______,
85 XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
86)
87
88};