aboutsummaryrefslogtreecommitdiff
path: root/keyboards/bpiphany/pegasushoof/keymaps
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/bpiphany/pegasushoof/keymaps
Diffstat (limited to 'keyboards/bpiphany/pegasushoof/keymaps')
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/blowrak/keymap.c105
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/blowrak/rules.mk17
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/citadel/config.h6
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c132
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/citadel/readme.md75
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/citadel/rules.mk17
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/default/keymap.c56
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/default/rules.mk10
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/default_jis/keymap.c54
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/default_jis/rules.mk10
10 files changed, 482 insertions, 0 deletions
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/blowrak/keymap.c b/keyboards/bpiphany/pegasushoof/keymaps/blowrak/keymap.c
new file mode 100644
index 000000000..788446202
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/blowrak/keymap.c
@@ -0,0 +1,105 @@
1/*
2Copyright 2016 Daniel Svensson <[email protected]>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20/* Swedish keys */
21#define SE_HALF KC_GRV
22#define SE_PLUS KC_MINS
23#define SE_ACUT KC_EQL
24#define SE_AO KC_LBRC
25#define SE_CIRC KC_RBRC
26#define SE_QUOT KC_BSLS
27#define SE_ODIA KC_SCLN
28#define SE_ADIA KC_QUOT
29#define SE_MINS KC_SLSH
30#define SE_LTGT KC_NUBS
31#define SE_LCBR RALT(KC_7)
32#define SE_LBRC RALT(KC_8)
33#define SE_RBRC RALT(KC_9)
34#define SE_RCBR RALT(KC_0)
35#define SE_PIPE RALT(SE_LTGT)
36#define SE_BSLS RALT(SE_PLUS)
37
38#define KM_BLOWRAK 0
39#define KM_QWERTY 1
40#define KM_MEDIA 2
41#define KM_HAXHAX 3
42
43const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 /* Layer 0: Blowrak ISO layer, a Swedish take on Dvorak */
45 [KM_BLOWRAK] = LAYOUT( \
46 KC_ESC, 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_PSCR,KC_SLCK,KC_PAUS, \
47 SE_HALF, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, SE_PLUS,SE_ACUT,KC_BSPC, KC_INS, KC_HOME,KC_PGUP, \
48 KC_TAB, SE_AO, SE_ADIA,SE_ODIA,KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_COMM,SE_CIRC,SE_QUOT, KC_DEL, KC_END, KC_PGDN, \
49 KC_LCTRL,KC_A, KC_O, KC_E, KC_U, KC_I, KC_H, KC_D, KC_T, KC_N, KC_S, SE_MINS, KC_ENT, \
50 KC_LSFT, SE_LTGT,KC_DOT, KC_Q, KC_J, KC_K, KC_B, KC_X, KC_M, KC_W, KC_V, KC_Z, KC_RSFT, KC_UP, \
51 MO(KM_MEDIA),KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI,KC_MENU,TG(KM_QWERTY), KC_LEFT,KC_DOWN,KC_RGHT),
52 /* Layer 1: Standard ISO layer */
53 [KM_QWERTY] = LAYOUT( \
54 KC_ESC, 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_PSCR,KC_SLCK,KC_PAUS, \
55 SE_HALF, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, SE_PLUS,SE_ACUT,KC_BSPC, KC_INS, KC_HOME,KC_PGUP, \
56 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, SE_AO, SE_CIRC,SE_QUOT, KC_DEL, KC_END, KC_PGDN, \
57 KC_LCTRL,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SE_ODIA,SE_ADIA, KC_ENT, \
58 KC_LSFT, SE_LTGT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, SE_MINS, KC_RSFT, KC_UP, \
59 MO(KM_MEDIA),KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_RGUI,KC_MENU,TG(KM_QWERTY), KC_LEFT,KC_DOWN,KC_RGHT),
60 /* Layer 2: Media layer */
61 [KM_MEDIA] = LAYOUT( \
62 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, KC_WAKE,KC_PWR, KC_SLEP, \
63 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,KC_VOLU, \
64 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, KC_MUTE,_______,KC_VOLD, \
65 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, \
66 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, KC_MPLY, \
67 _______,_______,_______, _______, _______,_______,RESET ,_______, KC_MPRV,KC_MSTP,KC_MNXT),
68 /* Layer 3: Programming layer */
69 [KM_HAXHAX] = LAYOUT( \
70 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, \
71 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, \
72 _______,SE_LCBR,SE_PIPE,SE_RCBR,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, \
73 _______,SE_LBRC,SE_BSLS,SE_RBRC,_______,_______,_______,_______,_______,_______,_______,_______, _______, \
74 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, \
75 _______,_______,_______, _______, _______,_______,_______,_______, _______,_______,_______),
76};
77
78void matrix_scan_user(void)
79{
80 uint8_t layer = biton32(layer_state);
81 switch (layer) {
82 case KM_BLOWRAK:
83 ph_caps_led_on();
84 ph_sclk_led_off();
85 break;
86 case KM_QWERTY:
87 ph_sclk_led_on();
88 ph_caps_led_off();
89 break;
90 }
91}
92
93/* Mixes in KM_HAXHAX via RALT modifier without shadowing the RALT key combinations. */
94bool process_record_user(uint16_t keycode, keyrecord_t *record) {
95 uint8_t modifiers = get_mods();
96 if (modifiers & MOD_BIT(KC_RALT) && record->event.pressed) {
97 uint16_t kc = keymap_key_to_keycode(KM_HAXHAX, record->event.key);
98 if (kc != KC_TRNS) {
99 register_code(kc);
100 unregister_code(kc);
101 return false;
102 }
103 }
104 return true;
105}
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/blowrak/rules.mk b/keyboards/bpiphany/pegasushoof/keymaps/blowrak/rules.mk
new file mode 100644
index 000000000..737451b39
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/blowrak/rules.mk
@@ -0,0 +1,17 @@
1# Build Options
2# change to "no" to disable the options, or define them in the Makefile in
3# the appropriate keymap folder that will get included automatically
4#
5BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
6MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
7EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
8CONSOLE_ENABLE = yes # Console for debug(+400)
9COMMAND_ENABLE = yes # Commands for debug and configuration
10CUSTOM_MATRIX = yes # Custom matrix file for the Pegasus Hoof due to the 2x74HC42
11NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
13MIDI_ENABLE = no # MIDI controls
14AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/citadel/config.h b/keyboards/bpiphany/pegasushoof/keymaps/citadel/config.h
new file mode 100644
index 000000000..122627e88
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/citadel/config.h
@@ -0,0 +1,6 @@
1#pragma once
2
3/* overridden settings: */
4
5#undef PRODUCT
6#define PRODUCT Pegasus Hoof Citadel
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c b/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c
new file mode 100644
index 000000000..5036bcb3f
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c
@@ -0,0 +1,132 @@
1/* Copyright 2018 Daniel Rose <[email protected]>
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/* Allow shortcuts for combos like RALT(KC_RBRC) that don't take up more than 7 characters: */
20/* Original shortcuts (quantum_keycodes.h) take full-sized keycodes: too long! */
21#undef C
22#undef S
23#undef A
24#undef G
25#define C(kc) LCTL(KC_##kc)
26#define S(kc) LSFT(KC_##kc)
27#define A(kc) LALT(KC_##kc)
28#define G(kc) RALT(KC_##kc)
29#define CTALDEL LCTL(LALT(KC_DEL))
30
31enum layers {
32 DEF,
33 FUN,
34 RES,
35};
36
37enum tap_dance {
38 AF4,
39};
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42/* Layer 0: default layer (ISO-DE)
43 * .----. .-------------------. .-------------------. .-------------------. .--------------.
44 * |Esc | |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10 |F11 |F12 | |PrSc|SLck|2Tp:|
45 * | | | | | | | | | | | | | | | | | |SyRq| |A+F4|
46 * '----' '-------------------' '-------------------' '-------------------' '--------------'
47 * .------------------------------------------------------------------------. .--------------.
48 * |° |! |" |§ |$ |% |& |/ |( |) |= |? |` |Backspa| |Ins |Home|PgUp|
49 * |^ |1 |2 ²|3 ³|4 |5 |6 |7 {|8 [|9 ]|0 }|ß \|´ | | | | | |
50 * |------------------------------------------------------------------------| |--------------|
51 * |Tab |Q |W |E |R |T |Z |U |I |O |P |Ü |* | E | |Del |End |PgDn|
52 * | | | | €| | | | | | | | |+ ~| n | | | | |
53 * |------------------------------------------------------------------\ t | '--------------'
54 * |Fn: |A |S |D |F |G |H |J |K |L |Ö |Ä |' | e |
55 * |Layer 2| | | | | | | | | | | |# | r |
56 * |------------------------------------------------------------------------| .----.
57 * |Shift|> |Y |X |C |V |B |N |M |; |: |_ |Shift | |Up |
58 * | |< ¦| | | | | | | µ|, |. |- | | | |
59 * |------------------------------------------------------------------------| .--------------.
60 * |Ctrl |Super|Alt | |AltGr|Alt |Fn: |Ctrl | |Left|Down|Righ|
61 * | | | | | | |Lay 2| | | | | |
62 * '------------------------------------------------------------------------' '--------------'
63 * NUHS = true position of KC_NUHS
64 */
65[DEF] = LAYOUT( \
66 KC_ESC, 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_PSCR,KC_SLCK,TD(AF4), \
67 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, KC_INS, KC_HOME,KC_PGUP, \
68 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_NUHS, KC_DEL, KC_END, KC_PGDN, \
69 MO(FUN),KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,/*NUHS*/KC_ENT, \
70 KC_LSFT,KC_NUBS,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, KC_UP, \
71 KC_LCTL,KC_LGUI,KC_LALT, KC_SPC, KC_RALT,KC_LALT,MO(FUN),KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT),
72
73 /* Layer 1: function layer
74 * .----. .-------------------. .-------------------. .-------------------. .--------------.
75 * |Ctl+| |My |WWW:|Calc|Medi| |Mus:|Mus:|Mus:|Mus:| |Vol:|Vol:|Vol:|See:| | | |Paus|
76 * |A+De| |Comp|Home| |Play| |Prev|Next|Paus|Stop| |Mute|Down|Up |[3] | | | |Brea|
77 * '----' '-------------------' '-------------------' '-------------------' '--------------'
78 * .------------------------------------------------------------------------. .--------------.
79 * | | | | | | | | | | | | | | | | | |Mou:|
80 * | | | | | | | |{ |[ |] |} |\ | | | | | |WhUp|
81 * |------------------------------------------------------------------------| |--------------|
82 * | | | | | | | | | | | | |~ | | | | |Mou:|
83 * | | | | | | | | | | | | | | | | | |WhDn|
84 * |------------------------------------------------------------------\ | '--------------'
85 * |CapsLck|Mou:|Mou:| | | | | | | | | | | |
86 * | |Fast|Slow| | | | | | | | | | | |
87 * |------------------------------------------------------------------------| .----.
88 * | | | | | | | | |µ | | | | | |Mou:|
89 * | | | | | | | | | | | | | | |Up |
90 * |------------------------------------------------------------------------| .--------------.
91 * |Mous:|Mous:| | | |Super|App | | |Mou:|Mou:|Mou:|
92 * |Bttn2|Bttn1| | | | | | | |Left|Down|Righ|
93 * '------------------------------------------------------------------------' '--------------'
94 *
95 */
96[FUN] = LAYOUT( \
97 CTALDEL, KC_MYCM,KC_WHOM,KC_CALC,KC_MSEL,KC_MPRV,KC_MNXT,KC_MPLY,KC_MSTP,KC_MUTE,KC_VOLD,KC_VOLU,MO(RES), _______,KC_SLCK,KC_PAUS, \
98 _______,_______,_______,_______,_______,_______,_______,G(7), G(8), G(9), G(0), G(MINS),_______,_______, _______,_______,KC_WH_U, \
99 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,G(RBRC),_______, _______,_______,KC_WH_D, \
100 KC_CAPS,KC_ACL2,KC_ACL0,_______,_______,_______,_______,_______,_______,_______,_______,_______,/*NUHS*/_______, \
101 _______,_______,_______,_______,_______,_______,_______,_______,G(M), _______,_______,_______, _______, KC_MS_U, \
102 KC_BTN2,KC_BTN1,_______, _______, _______,KC_RGUI,KC_APP ,_______, KC_MS_L,KC_MS_D,KC_MS_R),
103
104
105/* Layer 3: Reset layer (prevents accidental resets) */
106[RES] = LAYOUT( \
107 _______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, \
108 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, \
109 _______,_______,_______,_______,RESET, _______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,_______, \
110 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,/*NUHS*/_______, \
111 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______, _______, \
112 _______,_______,_______, _______, _______,_______,_______,_______, _______,_______,_______),
113};
114
115qk_tap_dance_action_t tap_dance_actions[] = {
116 /* Tap once: nothing. Tap twice: Alt+F4 */
117 [AF4] = ACTION_TAP_DANCE_DOUBLE(XXXXXXX,A(F4)),
118};
119
120void led_set_user(uint8_t usb_led) {
121 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
122 ph_caps_led_on();
123 } else {
124 ph_caps_led_off();
125 }
126
127 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
128 ph_sclk_led_on();
129 } else {
130 ph_sclk_led_off();
131 }
132}
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/citadel/readme.md b/keyboards/bpiphany/pegasushoof/keymaps/citadel/readme.md
new file mode 100644
index 000000000..3618bae86
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/citadel/readme.md
@@ -0,0 +1,75 @@
1# Citadel keymap for pegasushoof
2
3Designed for ISO-DE and similar ISO layouts.
4
5The central idea of this keymap is to avoid unergonomic key combos that force the user to either press
6multiple keys with one hand or to use the left hand for right-sided keys. For instance, ISO-DE users
7have to press `AltGr`+`7` to type _{_. The keymap allows ergonomic access to the right-sided keys of the
8German AltGr-layer by turning `Caps Lock` into a hybrid Fn/AltGr-key. It can easily be adapted for other
9ISO layouts.
10
11The _Function_ layer also offers mouse emulation and function/media keys in the F-Row.
12
13`Pause/Break` is used as a safe _close key_: A _single tap_ does nothing, a _double tap_ executes ALT+F4.
14
15Named after the homonymous space station from _Mass Effect_. Made by [Daniel Rose](https://github.com/droseger/).
16
17## [1] Layers
18
19### Layer 1 (Default)
20 .----. .-------------------. .-------------------. .-------------------. .--------------.
21 |Esc | |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10 |F11 |F12 | |PrSc|SLck|2Tp:|
22 | | | | | | | | | | | | | | | | | |SyRq| |A+F4|
23 '----' '-------------------' '-------------------' '-------------------' '--------------'
24 .------------------------------------------------------------------------. .--------------.
25 |° |! |" |§ |$ |% |& |/ |( |) |= |? |` |Backspa| |Ins |Home|PgUp|
26 |^ |1 |2 ²|3 ³|4 |5 |6 |7 {|8 [|9 ]|0 }|ß \|´ | | | | | |
27 |------------------------------------------------------------------------| |--------------|
28 |Tab |Q |W |E |R |T |Z |U |I |O |P |Ü |* | E | |Del |End |PgDn|
29 | | | | €| | | | | | | | |+ ~| n | | | | |
30 |------------------------------------------------------------------\ t | '--------------'
31 |Fn: |A |S |D |F |G |H |J |K |L |Ö |Ä |' | e |
32 |Layer 2| | | | | | | | | | | |# | r |
33 |------------------------------------------------------------------------| .----.
34 |Shift|> |Y |X |C |V |B |N |M |; |: |_ |Shift | |Up |
35 | |< ¦| | | | | | | µ|, |. |- | | | |
36 |------------------------------------------------------------------------| .--------------.
37 |Ctrl |Super|Alt | |AltGr|Alt |Fn: |Ctrl | |Left|Down|Righ|
38 | | | | | | |Lay 2| | | | | |
39 '------------------------------------------------------------------------' '--------------'
40
41### Layer 2 (Function)
42 .----. .-------------------. .-------------------. .-------------------. .--------------.
43 |Ctl+| |My |WWW:|Calc|Medi| |Mus:|Mus:|Mus:|Mus:| |Vol:|Vol:|Vol:|See:| | | |Paus|
44 |A+De| |Comp|Home| |Play| |Prev|Next|Paus|Stop| |Mute|Down|Up |[3] | | | |Brea|
45 '----' '-------------------' '-------------------' '-------------------' '--------------'
46 .------------------------------------------------------------------------. .--------------.
47 | | | | | | | | | | | | | | | | | |Mou:|
48 | | | | | | | |{ |[ |] |} |\ | | | | | |WhUp|
49 |------------------------------------------------------------------------| |--------------|
50 | | | | | | | | | | | | |~ | | | | |Mou:|
51 | | | | | | | | | | | | | | | | | |WhDn|
52 |------------------------------------------------------------------\ | '--------------'
53 |CapsLck|Mou:|Mou:| | | | | | | | | | | |
54 | |Fast|Slow| | | | | | | | | | | |
55 |------------------------------------------------------------------------| .----.
56 | | | | | | | | |µ | | | | | |Mou:|
57 | | | | | | | | | | | | | | |Up |
58 |------------------------------------------------------------------------| .--------------.
59 |Mous:|Mous:| | | |Super|App | | |Mou:|Mou:|Mou:|
60 |Bttn2|Bttn1| | | | | | | |Left|Down|Righ|
61 '------------------------------------------------------------------------' '--------------'
62
63Layer 3 exists solely to prevent users from accidentally activating boot mode: `R` is redefined
64as `RESET` key [3].
65
66## [2] How to build and install
671) Prerequisite: install the necessary [build tools](https://docs.qmk.fm/#/getting_started_build_tools)
68such as [dfu-programmer](https://github.com/dfu-programmer/dfu-programmer).
69 - You might need to [add udev rules](https://docs.qmk.fm/#/faq_build?id=can39t-program-on-linux) under Linux.
702) To test if the keymap compiles, simply run `make pegasushoof:citadel`
713) Enter the `qmk_firmware` root directory and run `make pegasushoof:citadel:dfu`
724) Reset controller to _Boot mode_ by pressing the `RESET` key or by using a magnet.
73
74## [3] How to access Boot mode after install
75Press `Fn+F12+R`
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/citadel/rules.mk b/keyboards/bpiphany/pegasushoof/keymaps/citadel/rules.mk
new file mode 100644
index 000000000..294a245aa
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/citadel/rules.mk
@@ -0,0 +1,17 @@
1# Build Options
2# change to "no" to disable the options
3#
4BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
5MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
6EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
7CONSOLE_ENABLE = no # Console for debug(+400)
8COMMAND_ENABLE = no # Commands for debug and configuration
9CUSTOM_MATRIX = yes # Custom matrix file for the Pegasus Hoof due to the 2x74HC42
10NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
11BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
12MIDI_ENABLE = no # MIDI controls
13AUDIO_ENABLE = no # Audio output on port C6
14UNICODE_ENABLE = no # Unicode
15BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
16RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
17TAP_DANCE_ENABLE = yes # see https://docs.qmk.fm/#/feature_tap_dance (+1000)
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/default/keymap.c b/keyboards/bpiphany/pegasushoof/keymaps/default/keymap.c
new file mode 100644
index 000000000..4a9b1f3f0
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/default/keymap.c
@@ -0,0 +1,56 @@
1/*
2Copyright 2016 Daniel Svensson <[email protected]>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20#define KM_QWERTY 0
21#define KM_MEDIA 1
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 /* Layer 0: Standard ISO layer */
25 [KM_QWERTY] = LAYOUT(
26 KC_ESC, 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_PSCR, KC_SLCK, KC_PAUS,
27 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
28 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
29 KC_CLCK, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
30 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
31 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_MENU, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
32 ),
33 /* Layer 1: Function layer */
34 [KM_MEDIA] = LAYOUT(
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_WAKE, KC_PWR, KC_SLEP,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLD,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPLY,
40 _______, _______, _______, _______, _______, _______, RESET, _______, KC_MPRV, KC_MSTP, KC_MNXT
41 )
42};
43
44void led_set_user(uint8_t usb_led) {
45 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
46 ph_caps_led_on();
47 } else {
48 ph_caps_led_off();
49 }
50
51 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
52 ph_sclk_led_on();
53 } else {
54 ph_sclk_led_off();
55 }
56}
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/default/rules.mk b/keyboards/bpiphany/pegasushoof/keymaps/default/rules.mk
new file mode 100644
index 000000000..0f9291c88
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/default/rules.mk
@@ -0,0 +1,10 @@
1BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
2MOUSEKEY_ENABLE = yes # Mouse keys
3EXTRAKEY_ENABLE = yes # Audio control and System control
4CONSOLE_ENABLE = yes # Console for debug
5COMMAND_ENABLE = yes # Commands for debug and configuration
6CUSTOM_MATRIX = yes # Custom matrix file for the Pegasus Hoof due to the 2x74HC42
7NKRO_ENABLE = no
8BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
9AUDIO_ENABLE = no # Audio output
10RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/default_jis/keymap.c b/keyboards/bpiphany/pegasushoof/keymaps/default_jis/keymap.c
new file mode 100644
index 000000000..46b660124
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/default_jis/keymap.c
@@ -0,0 +1,54 @@
1/*
2Copyright 2016 Daniel Svensson <[email protected]>
3 2018 Charlie McMackin <[email protected]>
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#include QMK_KEYBOARD_H
20
21#define KM_JIS 0
22#define KM_MEDIA 1
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] =
25 {
26 /* Layer 0: Standard JIS layer */
27 [KM_JIS] = LAYOUT_tkl_jis(KC_ESC, 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_PSCR,KC_SLCK,KC_PAUS,
28 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_JYEN, KC_BSPC, KC_INS, KC_HOME,KC_PGUP,
29 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC, KC_DEL, KC_END, KC_PGDN,
30 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,KC_BSLS,KC_ENT,
31 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RO, KC_RSFT, KC_UP,
32 KC_LCTL, KC_LGUI,KC_LALT,KC_MHEN, KC_SPC, KC_HENK,KC_KANA,KC_RALT,MO(1), KC_RCTL, KC_LEFT,KC_DOWN,KC_RGHT),
33 /* Layer 1: Function layer */
34 [KM_MEDIA] = LAYOUT_tkl_jis(_______, _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, KC_WAKE,KC_PWR, KC_SLEP,
35 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,KC_VOLU,
36 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, _______,_______,KC_VOLD,
37 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,
38 _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______, KC_MPLY,
39 _______,_______,_______,_______, _______, _______,_______,_______,_______,RESET , KC_MPRV,KC_MSTP,KC_MNXT)
40 };
41
42void led_set_user(uint8_t usb_led) {
43 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
44 ph_caps_led_on();
45 } else {
46 ph_caps_led_off();
47 }
48
49 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
50 ph_sclk_led_on();
51 } else {
52 ph_sclk_led_off();
53 }
54}
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/default_jis/rules.mk b/keyboards/bpiphany/pegasushoof/keymaps/default_jis/rules.mk
new file mode 100644
index 000000000..cec4b4e46
--- /dev/null
+++ b/keyboards/bpiphany/pegasushoof/keymaps/default_jis/rules.mk
@@ -0,0 +1,10 @@
1BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
2MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
3EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
4CONSOLE_ENABLE = yes # Console for debug(+400)
5COMMAND_ENABLE = yes # Commands for debug and configuration
6CUSTOM_MATRIX = yes # Custom matrix file for the Pegasus Hoof due to the 2x74HC42
7NKRO_ENABLE = no
8BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
9AUDIO_ENABLE = no # Audio output
10RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.