diff options
4 files changed, 192 insertions, 0 deletions
diff --git a/keyboards/v60_type_r/keymaps/followingghosts/config.h b/keyboards/v60_type_r/keymaps/followingghosts/config.h new file mode 100644 index 000000000..a2612e2d3 --- /dev/null +++ b/keyboards/v60_type_r/keymaps/followingghosts/config.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | /* Copyright 2018 Ben Lewis (FollowingGhosts) | ||
| 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 | #pragma once | ||
| 17 | #define V60_POLESTAR | ||
| 18 | #define RGBLIGHT_EFFECT_BREATHING | ||
diff --git a/keyboards/v60_type_r/keymaps/followingghosts/keymap.c b/keyboards/v60_type_r/keymaps/followingghosts/keymap.c new file mode 100644 index 000000000..cca95c509 --- /dev/null +++ b/keyboards/v60_type_r/keymaps/followingghosts/keymap.c | |||
| @@ -0,0 +1,109 @@ | |||
| 1 | /* Copyright 2018 Ben Lewis (FollowingGhosts) | ||
| 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 | /* This is adapted from the official ANSI layout provided by the KBP V60 Type R | ||
| 18 | * as depicted in their manual and on the stock keycaps. | ||
| 19 | */ | ||
| 20 | #include QMK_KEYBOARD_H | ||
| 21 | |||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | /* Keymap 0: Default Layer (Qwerty) | ||
| 25 | * CAPS opens Layer 1 if held, acts normally if tapped | ||
| 26 | * Tab is used for Mouse Layer (2) | ||
| 27 | * ,-----------------------------------------------------------. | ||
| 28 | * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bs | | ||
| 29 | * |-----------------------------------------------------------| | ||
| 30 | * |L2/Tab| Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | ||
| 31 | * |-----------------------------------------------------------| | ||
| 32 | * |L1/Caps| A| S| D| F| G| H| J| K| L| ;| '|Return | | ||
| 33 | * |-----------------------------------------------------------| | ||
| 34 | * |LShift( | Z| X| C| V| B| N| M| ,| .| /| RShift) | | ||
| 35 | * |-----------------------------------------------------------| | ||
| 36 | * |Ctrl|Gui |Alt | Space |Fn0 |Gui |App|Ctrl| | ||
| 37 | * `-----------------------------------------------------------' | ||
| 38 | */ | ||
| 39 | [0] = LAYOUT_60_ansi( | ||
| 40 | KC_ESC, 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, \ | ||
| 41 | LT(2, 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, \ | ||
| 42 | LT(1, 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_ENT, \ | ||
| 43 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, \ | ||
| 44 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RGUI, KC_APP, KC_RCTL), | ||
| 45 | |||
| 46 | /* | ||
| 47 | Keymap 1: FN Layer | ||
| 48 | AGSW swaps Alt and OS keys for Windows/Mac | ||
| 49 | RGB enabled | ||
| 50 | Backlight keys are swapped as firmware is backwards? | ||
| 51 | * ,-----------------------------------------------------------. | ||
| 52 | * |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| Del | | ||
| 53 | * |-----------------------------------------------------------| | ||
| 54 | * | | |Up |RGB|HUI|SAI|VAI| |Prt|Scl|Pau|Up| | Ins | | ||
| 55 | * |-----------------------------------------------------------| | ||
| 56 | * | |Lft|Dwn|Rig|HUD|SAD|VAD| |Hme|PgU|Lef|Rig| | | ||
| 57 | * |-----------------------------------------------------------| | ||
| 58 | * | |BLD|BLT|BLI| |VolD|VolU|Mut|End|PgD|Dwn| RESET | | ||
| 59 | * |-----------------------------------------------------------| | ||
| 60 | * | | | | | |AGSW| | | | ||
| 61 | * `-----------------------------------------------------------' | ||
| 62 | */ | ||
| 63 | |||
| 64 | [1] = LAYOUT_60_ansi( | ||
| 65 | 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_DEL, \ | ||
| 66 | KC_TRNS, KC_TRNS, KC_UP, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_TRNS, KC_INS, \ | ||
| 67 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RIGHT, KC_TRNS, \ | ||
| 68 | KC_TRNS, BL_INC, BL_STEP, BL_DEC, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_DOWN, RESET, \ | ||
| 69 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, AG_SWAP, KC_TRNS, KC_TRNS), | ||
| 70 | |||
| 71 | /* | ||
| 72 | Mouse Layer | ||
| 73 | M1 = Mouse Button 1 | ||
| 74 | M2 = Mouse Button 2 | ||
| 75 | WASD are Up Left Right Down respectively | ||
| 76 | * ,-----------------------------------------------------------. | ||
| 77 | * | | | | | | | | | | | | | | | | ||
| 78 | * |-----------------------------------------------------------| | ||
| 79 | * | | M1|MUP|M2 | | | | | | | |MPLY| | | | ||
| 80 | * |-----------------------------------------------------------| | ||
| 81 | * | |ML |MDN|MR | | | | | | |MPRV|MNXT| | | ||
| 82 | * |-----------------------------------------------------------| | ||
| 83 | * | | | | | | | | | | | | | | ||
| 84 | * |-----------------------------------------------------------| | ||
| 85 | * | | | | | | | | | | ||
| 86 | * `-----------------------------------------------------------' | ||
| 87 | */ | ||
| 88 | [2] = LAYOUT_60_ansi( | ||
| 89 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
| 90 | KC_TRNS, KC_BTN1, KC_MS_U, KC_BTN2, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY, KC_TRNS, KC_TRNS, \ | ||
| 91 | KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_TRNS, \ | ||
| 92 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, \ | ||
| 93 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 94 | |||
| 95 | |||
| 96 | }; | ||
| 97 | |||
| 98 | void led_set_user(uint8_t usb_led) { | ||
| 99 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
| 100 | // output low | ||
| 101 | DDRE |= (1<<PE6); | ||
| 102 | PORTE &= ~(1<<PE6); | ||
| 103 | } | ||
| 104 | else { | ||
| 105 | // Hi-Z | ||
| 106 | DDRE &= ~(1<<PE6); | ||
| 107 | PORTE &= ~(1<<PE6); | ||
| 108 | } | ||
| 109 | } | ||
diff --git a/keyboards/v60_type_r/keymaps/followingghosts/readme.md b/keyboards/v60_type_r/keymaps/followingghosts/readme.md new file mode 100644 index 000000000..a7379a52d --- /dev/null +++ b/keyboards/v60_type_r/keymaps/followingghosts/readme.md | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | KB Paradise V60 Type R Customised Layout by FollowingGhosts | ||
| 2 | ====================== | ||
| 3 | |||
| 4 | This is my custom keymap for the Polestar Type R | ||
| 5 | |||
| 6 | ## Keymap Notes | ||
| 7 | Supports Underglow lighting with RGB modifier keys and normal backlight | ||
| 8 | Selectable swap between Alt and OS keys which is stored in EEPROM | ||
| 9 | CAPSLOCK acts as FN when held/equivalent to MO1 | ||
| 10 | TAB acts as FN2 when held to provide a mouse layer with WASD and Q and E as left and right click respectively | ||
| 11 | LShift and RShift have Space Cadet Shift enabled | ||
| 12 | |||
| 13 | RGB colour setting is set to HSV to bring it in line with (QMK docs)([https://beta.docs.qmk.fm/features/feature_rgblight]) | ||
| 14 | R+/R- are hue, G+/G- are saturation and B+/B- are value | ||
| 15 | |||
| 16 | ``` | ||
| 17 | Keymap 0: Default/Windows Layer (Qwerty) | ||
| 18 | * ,-----------------------------------------------------------. | ||
| 19 | * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bs | | ||
| 20 | * |-----------------------------------------------------------| | ||
| 21 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | ||
| 22 | * |-----------------------------------------------------------| | ||
| 23 | * |CAP/MO1| A| S| D| F| G| H| J| K| L| ;| '|Return | | ||
| 24 | * |-----------------------------------------------------------| | ||
| 25 | * |LShift | Z| X| C| V| B| N| M| ,| .| /| RShift | | ||
| 26 | * |-----------------------------------------------------------| | ||
| 27 | * |Ctrl|Gui |Alt | Space | MO1|Gui |App|Ctrl| | ||
| 28 | * -----------------------------------------------------------' | ||
| 29 | |||
| 30 | |||
| 31 | Keymap 1: FN Layer | ||
| 32 | * -----------------------------------------------------------. | ||
| 33 | * | | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| Del | | ||
| 34 | * |-----------------------------------------------------------| | ||
| 35 | * | | |Up |RGB|HUI|SAI|VAI| |Prt|Scl|Pau|Up| | Ins | | ||
| 36 | * |-----------------------------------------------------------| | ||
| 37 | * | |Lft|Dwn|Rig|HUD|SAD|VAD| |Hme|PgU|Lef|Rig| | | ||
| 38 | * |-----------------------------------------------------------| | ||
| 39 | * | |BLD|BLT|BLI| |VolD|VolU|Mut|End|PgD|Dwn| | | ||
| 40 | * |-----------------------------------------------------------| | ||
| 41 | * | | | | | |AGSW| | | | ||
| 42 | * '-----------------------------------------------------------' | ||
| 43 | |||
| 44 | Mouse Layer | ||
| 45 | M1 = Mouse Button 1 | ||
| 46 | M2 = Mouse Button 2 | ||
| 47 | WASD are Up Left Right Down respectively | ||
| 48 | * ,-----------------------------------------------------------. | ||
| 49 | * | | | | | | | | | | | | | | | | ||
| 50 | * |-----------------------------------------------------------| | ||
| 51 | * | | M1|MUP|M2 | | | | | | | |MPLY| | | | ||
| 52 | * |-----------------------------------------------------------| | ||
| 53 | * | |ML |MDN|MR | | | | | | |MNXT|MPRV| | | ||
| 54 | * |-----------------------------------------------------------| | ||
| 55 | * | | | | | | | | | | | | | | ||
| 56 | * |-----------------------------------------------------------| | ||
| 57 | * | | | | | | | | | | ||
| 58 | * -----------------------------------------------------------' | ||
| 59 | ``` | ||
| 60 | ### Build | ||
| 61 | To build this keymap, simply run `make v60_type_r:followingghosts`. | ||
diff --git a/keyboards/v60_type_r/keymaps/followingghosts/rules.mk b/keyboards/v60_type_r/keymaps/followingghosts/rules.mk new file mode 100644 index 000000000..a1b0120a6 --- /dev/null +++ b/keyboards/v60_type_r/keymaps/followingghosts/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | BACKLIGHT_ENABLE = yes | ||
| 2 | RGBLIGHT_ENABLE = yes | ||
| 3 | MOUSEKEY_ENABLE = yes | ||
| 4 | CONSOLE_ENABLE = no | ||
