diff options
Diffstat (limited to 'keyboards/mechwild/murphpad')
-rw-r--r-- | keyboards/mechwild/murphpad/config.h | 80 | ||||
-rw-r--r-- | keyboards/mechwild/murphpad/keymaps/default/keymap.c | 83 | ||||
-rw-r--r-- | keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c | 424 | ||||
-rw-r--r-- | keyboards/mechwild/murphpad/keymaps/jonavin/readme.md | 76 | ||||
-rw-r--r-- | keyboards/mechwild/murphpad/keymaps/via/keymap.c | 83 |
5 files changed, 0 insertions, 746 deletions
diff --git a/keyboards/mechwild/murphpad/config.h b/keyboards/mechwild/murphpad/config.h deleted file mode 100644 index 4a056f036a..0000000000 --- a/keyboards/mechwild/murphpad/config.h +++ /dev/null @@ -1,80 +0,0 @@ -/* -Copyright 2021 Kyle McCreery - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#include "config_common.h" - -/* Key matrix size */ -#define MATRIX_ROWS 6 -#define MATRIX_COLS 5 - -/* Key matrix pins */ -#define MATRIX_ROW_PINS { F5, B2, B3, B1, F7, F6 } -#define MATRIX_COL_PINS { B5, D7, C6, D4, B6 } - -/* Encoder pins */ -#define ENCODERS_PAD_A { E6, D2 } -#define ENCODERS_PAD_B { B4, D3 } - -/* Encoder resolution */ -#define ENCODER_RESOLUTION 4 -#define TAP_CODE_DELAY 10 - -/* COL2ROW, ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -#define OLED_FONT_H "keyboards/mechwild/murphpad/lib/murphpadfont.c" - -#define RGB_DI_PIN F4 -#ifdef RGB_DI_PIN -# define RGBLED_NUM 8 -# define RGBLIGHT_HUE_STEP 8 -# define RGBLIGHT_SAT_STEP 8 -# define RGBLIGHT_VAL_STEP 8 -# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ -# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ -#define RGBLIGHT_EFFECT_BREATHING -#define RGBLIGHT_EFFECT_RAINBOW_MOOD -#define RGBLIGHT_EFFECT_RAINBOW_SWIRL -#define RGBLIGHT_EFFECT_SNAKE -#define RGBLIGHT_EFFECT_KNIGHT -#define RGBLIGHT_EFFECT_CHRISTMAS -#define RGBLIGHT_EFFECT_STATIC_GRADIENT -#define RGBLIGHT_EFFECT_RGB_TEST -#define RGBLIGHT_EFFECT_ALTERNATING -#define RGBLIGHT_EFFECT_TWINKLE -/*== customize breathing effect ==*/ -/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ -//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 -/*==== use exp() and sin() ====*/ -//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 -//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 -#endif - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ -#define LOCKING_SUPPORT_ENABLE - -/* Locking resynchronize hack */ -#define LOCKING_RESYNC_ENABLE - -/* Bootmagic Lite key configuration */ -#define BOOTMAGIC_LITE_ROW 0 -#define BOOTMAGIC_LITE_COLUMN 1 diff --git a/keyboards/mechwild/murphpad/keymaps/default/keymap.c b/keyboards/mechwild/murphpad/keymaps/default/keymap.c deleted file mode 100644 index 9d51f29158..0000000000 --- a/keyboards/mechwild/murphpad/keymaps/default/keymap.c +++ /dev/null @@ -1,83 +0,0 @@ -/* Copyright 2021 Kyle McCreery - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H - -// Defines names for use in layer keycodes and the keymap - -enum layer_names { - _BASE, - _FN1, - _FN2, - _FN3 -}; - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT( - KC_F1, KC_F2, KC_F3, KC_F4, - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_MUTE, KC_P4, KC_P5, KC_P6, _______, - MO(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT, - KC_BSPC, KC_P0, _______, KC_PDOT, _______, - - KC_F5, KC_F6, KC_F7 - - ), - [_FN1] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - RGB_HUD, RGB_SPI, RGB_HUI, _______, - _______, RGB_RMOD, RGB_TOG, RGB_MOD, _______, - _______, RGB_VAD, RGB_SPD, RGB_VAI, _______, - _______, RGB_SAD, _______, RGB_SAI, _______, - - _______, _______, _______ - - ), - [_FN2] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - - ), - [_FN3] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - - ) -}; - -#ifdef ENCODER_MAP_ENABLE -const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { - [_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_BRID, KC_BRIU) }, - [_FN1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, - [_FN2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, - [_FN3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, -}; -#endif diff --git a/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c b/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c deleted file mode 100644 index 070b572507..0000000000 --- a/keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c +++ /dev/null @@ -1,424 +0,0 @@ -/* Copyright 2021 Kyle McCreery - * Copyright 2021 Jonavin Eng - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H -#include "jonavin.h" -#include "layout_landscape.h" - - -// Defines names for use in layer keycodes and the keymap -enum layer_names { - _FN2 = 2, - _FN3, - _FN4, - _RGB -}; - -#ifdef LANDSCAPE_MODE -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [_BASE] = LAYOUT_landscape( - TT(_FN1), TT(_FN2), KC_MUTE, - - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, KC_BSPC, - KC_TAB, KC_P7, KC_P8, KC_P9, KC_PDOT, KC_RGUI, - KC_RSFT, KC_P4, KC_P5, KC_P6, KC_COMMA, KC_RCTL, - KC_P0, KC_P1, KC_P2, KC_P3, KC_PENT, KC_RALT, - - TT(_FN3), TT(_FN4), TT(_RGB) - ), - [_FN1] = LAYOUT_landscape( - _______, _______, ENCFUNC, - - _______, KC_F10, KC_F11, KC_F12, KC_PSCR, _______, - _______, KC_F7, KC_F8, KC_F9, KC_SCRL, _______, - _______, KC_F4, KC_F5, KC_F6, KC_PAUS, _______, - _______, KC_F1, KC_F2, KC_F3, _______, _______, - - _______, _______, _______ - ), - [_FN2] = LAYOUT_landscape( - _______, _______, QK_BOOT, - - _______, _______, KC_MPLY, KC_MPRV, KC_MNXT, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - - _______, _______, _______ - ), - [_FN3] = LAYOUT_landscape( - _______, _______, _______, - - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - - _______, _______, _______ - ), - [_FN4] = LAYOUT_landscape( - _______, _______, _______, - - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - - _______, _______, _______ - ), - [_RGB] = LAYOUT_landscape( - _______, _______, _______, - - _______, _______, _______, _______, _______, _______, - _______, RGB_HUD, RGB_SPI, RGB_HUI, RGB_SAI, _______, - _______, RGB_RMOD, RGB_TOG, RGB_MOD, RGB_SAD, _______, - _______, RGB_VAD, RGB_SPD, RGB_VAI, KC_NO, _______, - - _______, _______, _______ - ), -}; -#endif // LANDSCAPE_MODE - -#ifndef LANDSCAPE_MODE -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT( - TT(_FN2),TT(_FN3),TT(_FN4),LT(_RGB,KC_PSCR), - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_MUTE, KC_P4, KC_P5, KC_P6, _______, - TT(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT, - KC_RALT, KC_P0, _______, KC_PDOT, _______, - - TT(_FN3), TT(_FN4), TT(_RGB) - ), - [_FN1] = LAYOUT( - _______, _______, _______, QK_BOOT, - KC_CALC, _______, _______, _______, - _______, _______, _______, _______, - ENCFUNC, KC_TAB, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, KC_BSPC, _______, KC_DEL, _______, - - _______, _______, _______ - ), - [_FN2] = LAYOUT( - _______, _______, _______, _______, - _______, _______, KC_MPLY, KC_MPRV, - _______, _______, _______, KC_MNXT, - QK_BOOT, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - ), - [_FN3] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - ), - [_FN4] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - ), - [_RGB] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - RGB_HUD, RGB_SPI, RGB_HUI, _______, - _______, RGB_RMOD, RGB_TOG, RGB_MOD, _______, - _______, RGB_VAD, RGB_SPD, RGB_VAI, _______, - _______, RGB_SAD, _______, RGB_SAI, _______, - - _______, _______, _______ - ), -}; -#endif // !LANDSCAPE_MODE - -typedef struct { - char keydesc[6]; // this will be displayed on OLED - uint16_t keycode; // this is the keycode that will be sent when activted -} keycodedescType; - -static const keycodedescType PROGMEM keyselection[] = { - // list of key codes that will be scrolled through by encoder and description - {"TASK ", KC_TASK}, - {"PREV ", KC_MEDIA_PREV_TRACK}, - {"NEXT ", KC_MEDIA_NEXT_TRACK}, - {"PLAY ", KC_MEDIA_PLAY_PAUSE}, - {"PrtScm", KC_PSCR}, - {"ScrLk", KC_SCLN}, - {"Break", KC_PAUS}, - {"C-A-D", KC_CAD}, // Ctrl-Alt-Del - {"AltF4", KC_AF4}, - {"RESET", QK_BOOT}, // firmware flash mode -}; - -#define MAX_KEYSELECTION ARRAY_SIZE(keyselection) - -static uint8_t selectedkey_idx = 0; -static keycodedescType selectedkey_rec; - -static void set_selectedkey(uint8_t idx) { - // make a copy from PROGMEM - memcpy_P (&selectedkey_rec, &keyselection[idx], sizeof selectedkey_rec); - - //selectedkey_rec = keyselection[idx]; - -} - -void keyboard_post_init_keymap(void) { - // Call the keyboard post init code. - set_selectedkey(selectedkey_idx); -} - -bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case ENCFUNC: - if (record->event.pressed) { - selectedkey_rec.keycode == QK_BOOT ? reset_keyboard() : tap_code16(selectedkey_rec.keycode); // handle QK_BOOT code - } else { - // when keycode is released - } - break; - } - return true; -}; - - -#ifdef ENCODER_ENABLE // Encoder Functionality - void encoder_action_selectkey(bool clockwise) { - if ( clockwise ) { - if ( selectedkey_idx < MAX_KEYSELECTION-1) { - selectedkey_idx ++; - } else { - // do nothing - } - } else if ( !clockwise ) { - if ( selectedkey_idx > 0){ - selectedkey_idx --; - } else { - // do nothing - } - } - set_selectedkey(selectedkey_idx); - } - - bool encoder_update_user(uint8_t index, bool clockwise) { - #ifdef OLED_ENABLE - oled_clear(); - oled_render(); - #endif - uint8_t mods_state = get_mods(); - switch (index) { - case 0: // main primary encoder - switch(get_highest_layer(layer_state)){ // special handling per layer - case _FN1: // on Fn layer select what the encoder does when pressed - if (!mods_state) { - encoder_action_selectkey(clockwise); - break; - } else { - // continue to default - } - case _RGB: - if (!mods_state) { - encoder_action_rgb_hue(clockwise); - break; - } - default: // all other layers - if (mods_state & MOD_BIT(KC_RSFT) ) { // If you are holding R shift, encoder changes layers - encoder_action_layerchange(clockwise); - } else if (mods_state & MOD_BIT(KC_RCTL)) { // if holding Right Ctrl, navigate next/prev word - encoder_action_navword(clockwise); - } else if (mods_state & MOD_BIT(KC_RALT)) { // if holding Right Alt, change media next/prev track - encoder_action_mediatrack(clockwise); - } else { - encoder_action_volume(clockwise); // Otherwise it just changes volume - } - break; - } - break; - case 1: // optional secondary encoder - switch(get_highest_layer(layer_state)){ // special handling per layer - case _RGB: - if (!mods_state) { - encoder_action_rgb_mode(clockwise); - break; - } - default: // all other layers - encoder_action_mediatrack(clockwise); // Otherwise prev/next track - break; - } - } - return false; - } -#endif - - -#ifdef OLED_ENABLE - static void render_logo(void) { // Render MechWild "MW" Logo - static const char PROGMEM logo_1[] = {0x8A, 0x8B, 0x8C, 0x8D, 0x00}; - static const char PROGMEM logo_2[] = {0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0x00}; - static const char PROGMEM logo_3[] = {0xCA, 0xCB, 0xCC, 0xCD, 0x00}; - static const char PROGMEM logo_4[] = {0x20, 0x8E, 0x8F, 0x90, 0x00}; - oled_set_cursor(0,0); - oled_write_P(logo_1, false); - oled_set_cursor(0,1); - oled_write_P(logo_2, false); - oled_set_cursor(0,2); - oled_write_P(logo_3, false); - oled_set_cursor(0,3); - oled_write_P(logo_4, false); - } - - #ifdef LANDSCAPE_MODE - oled_rotation_t oled_init_user(oled_rotation_t rotation) { - return OLED_ROTATION_0; // do not flip the display - } - - bool oled_task_user(void) { - - render_logo(); - oled_set_cursor(8,2); - switch(get_selected_layer()){ - case _BASE: - oled_write_P(PSTR("BASE"), false); - break; - case _FN1: - oled_write_P(PSTR("FN "), false); - oled_write(selectedkey_rec.keydesc, false); - break; - case _FN2: - oled_write_P(PSTR("FN2 "), false); - break; - case _FN3: - oled_write_P(PSTR("FN3 "), false); - break; - case _FN4: - oled_write_P(PSTR("FN4 "), false); - break; - case _RGB: - oled_write_P(PSTR("RGB "), false); - break; - default: - oled_write_P(PSTR(" ?? "), false); // Should never display, here as a catchall - } - oled_write_P(keymap_config.no_gui ? PSTR(" WL") : PSTR(" "), false); - oled_set_cursor(8,3); - if (get_highest_layer(layer_state) == get_selected_layer()) { - oled_write_P(PSTR(" "), false); - } else { - switch (get_highest_layer(layer_state)) { - case _BASE: - oled_write_P(PSTR("Temp BASE"), false); - break; - case _FN1: - oled_write_P(PSTR("Temp FN "), false); - oled_write(selectedkey_rec.keydesc, false); - break; - case _FN2: - oled_write_P(PSTR("Temp FN2 "), false); - break; - case _FN3: - oled_write_P(PSTR("Temp FN3 "), false); - break; - case _FN4: - oled_write_P(PSTR("Temp FN4 "), false); - break; - case _RGB: - oled_write_P(PSTR("Temp RGB "), false); - break; - default: - oled_write_P(PSTR("Temp ????"), false); // Should never display, here as a catchall - } - } - led_t led_state = host_keyboard_led_state(); - oled_set_cursor(8,0); - oled_write_P(PSTR(" JONAVIN "), false); - oled_set_cursor(8,1); - oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false); - oled_write_P(led_state.caps_lock ? PSTR("CAPS ") : PSTR(" "), false); - oled_write_P(led_state.scroll_lock ? PSTR("SCR") : PSTR(" "), false); - return false; - } - #endif // LANDSCAPE_MODE - - // regular mode - #ifndef LANDSCAPE_MODE - bool oled_task_user(void) { - render_logo(); - oled_set_cursor(0,5); - - oled_write_ln_P(PSTR("-JV-"), false); - oled_write_ln_P(PSTR(" "), false); - - bool showSelectedKey = false; - switch (get_highest_layer(layer_state)) { - case _BASE: - oled_write_ln_P(PSTR("BASE"), false); - break; - case _FN1: - oled_write_ln_P(PSTR("FN 1"), false); - showSelectedKey = true; - break; - case _FN2: - oled_write_ln_P(PSTR("FN 2"), false); - break; - case _FN3: - oled_write_ln_P(PSTR("FN 3"), false); - break; - case _FN4: - oled_write_ln_P(PSTR("FN 4"), false); - break; - case _RGB: - oled_write_ln_P(PSTR("RGB "), false); - break; - default: - oled_write_ln_P(PSTR(" ?? "), false); - } - if (showSelectedKey) oled_write_ln(selectedkey_rec.keydesc, false); - else oled_write_ln_P(PSTR(" "), false); - - // Host Keyboard LED Status - led_t led_state = host_keyboard_led_state(); - oled_set_cursor(0,11); - oled_write_ln_P(led_state.num_lock ? PSTR(" NUM") : PSTR(" "), false); - oled_write_ln_P(led_state.caps_lock ? PSTR(" CAP") : PSTR(" "), false); - oled_write_ln_P(led_state.scroll_lock ? PSTR(" SCR") : PSTR(" "), false); - return false; - } - #endif // !LANDSCAPE_MODE - - void suspend_power_down_user(void) { // shutdown oled when powered down to prevent OLED from showing Mercutio all the time - oled_off(); - rgblight_disable_noeeprom(); - } - - void suspend_wakeup_init_user(void) { - rgblight_enable_noeeprom(); - } -#endif diff --git a/keyboards/mechwild/murphpad/keymaps/jonavin/readme.md b/keyboards/mechwild/murphpad/keymaps/jonavin/readme.md deleted file mode 100644 index 95835343e1..0000000000 --- a/keyboards/mechwild/murphpad/keymaps/jonavin/readme.md +++ /dev/null @@ -1,76 +0,0 @@ -Jonavin's Custom MurphPad Landscape Layout - -This allows you to use Murphpad in a horizontal/landscape orientation with extra layers - - - OLED has been rotated for landscape mode - - Keymap positions have been updated so it's easier to visualize the keymap in landscape - - [_BASE] = LAYOUT_landscape( - TT(_FN1), TT(_FN2), KC_MUTE, - - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, KC_BSPC, - KC_TAB, KC_P7, KC_P8, KC_P9, KC_PDOT, KC_RGUI, - KC_RSFT, KC_P4, KC_P5, KC_P6, KC_COMMA, KC_RCTL, - KC_P0, KC_P1, KC_P2, KC_P3, KC_PENT, KC_RALT, - - _______, _______, _______ - ), - -NOTE: VIA is enabled, but it will show it in the normal orientation until I build a landscape layout version - -Special Features - - FN1 layer has encoder selectable key codes and displayed on OLED - - Change these in keymap.c to assign your desired key selection - - static const keycodedescType PROGMEM keyselection[] = { - // list of key codes that will be scrollled through by encoder and description - {"TASK ", KC_TASK}, - {"PREV ", KC_MEDIA_PREV_TRACK}, - {"NEXT ", KC_MEDIA_NEXT_TRACK}, - {"PLAY ", KC_MEDIA_PLAY_PAUSE}, - {"PrtScm", KC_PSCR}, - {"ScrLk", KC_SCLN}, - {"Break", KC_PAUS}, - {"C-A-D", KC_CAD}, // Ctrl-Alt-Del - {"AltF4", KC_AF4}, - {"RESET", QK_BOOT}, // firmware flash mode - }; - - - Additional encoder functionality - - While holding R Shift, changes layers - - While holding R Ctrl, navigates next or previous word - - While holding R Alt, media next track or previous track - - Otherwise change volume up/dn - - -rules.mk OPTIONS - Active features from userspace - - - STARTUP_NUMLOCK_ON = yes - - turns on NUMLOCK by default - -DEFAULT LANDSCAPE MAPPING - -![image](https://user-images.githubusercontent.com/71780717/131718965-b20afef6-3bc5-49e4-952f-5755a9d6d539.png) - - -FN1 Layer 1 - -![image](https://user-images.githubusercontent.com/71780717/131719025-d41cbcd9-80b1-4a0a-abb5-55d878752dc6.png) - - -FN2 Layer 2 - -![image](https://user-images.githubusercontent.com/71780717/132967003-63268514-2ac3-4069-bca1-6d92992ca403.png) - - -RGB Layer 5 - Use Shift+Encoder to get to RGB layer 5 - -![image](https://user-images.githubusercontent.com/71780717/131719492-e2d05a75-3a7a-48ca-94a3-faa3ff891914.png) - --------------- - -NORMAL / TRADITIONAL NON-LANDSCAPE NUMPAD LAYOUT - -![image](https://user-images.githubusercontent.com/71780717/132966975-3b463fb4-059f-42c5-b8b3-a3d35f4a0d6b.png) - diff --git a/keyboards/mechwild/murphpad/keymaps/via/keymap.c b/keyboards/mechwild/murphpad/keymaps/via/keymap.c deleted file mode 100644 index 717ff430c9..0000000000 --- a/keyboards/mechwild/murphpad/keymaps/via/keymap.c +++ /dev/null @@ -1,83 +0,0 @@ -/* Copyright 2021 Kyle McCreery - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H - -// Defines names for use in layer keycodes and the keymap - -enum layer_names { - _BASE, - _FN1, - _FN2, - _FN3 -}; - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [_BASE] = LAYOUT( - KC_F1, KC_F2, KC_F3, KC_F4, - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_MUTE, KC_P4, KC_P5, KC_P6, _______, - MO(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT, - KC_BSPC, KC_P0, _______, KC_PDOT, _______, - - KC_F5, KC_F6, KC_F7 - - ), - [_FN1] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - RGB_HUD, RGB_SPI, RGB_HUI, _______, - _______, RGB_RMOD, RGB_TOG, RGB_MOD, _______, - _______, RGB_VAD, RGB_SPD, RGB_VAI, _______, - _______, RGB_SAD, _______, RGB_SAI, _______, - - _______, _______, _______ - - ), - [_FN2] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - - ), - [_FN3] = LAYOUT( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, _______ - - ) -}; - -#ifdef ENCODER_MAP_ENABLE -const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { - [_BASE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_BRID, KC_BRIU) }, - [_FN1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, - [_FN2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, - [_FN3] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, -}; -#endif |