1
0
Fork 0

[Keyboard] Murphpad Changes and Updates (#12995)

Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
Kyle McCreery 2021-06-18 14:48:41 -10:00 committed by GitHub
parent 6e132884b3
commit feaf972eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 80 additions and 66 deletions

View file

@ -36,8 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define UNUSED_PINS #define UNUSED_PINS
/* Encoder pins */ /* Encoder pins */
#define ENCODERS_PAD_A { E6 } #define ENCODERS_PAD_A { E6, D2 }
#define ENCODERS_PAD_B { B4 } #define ENCODERS_PAD_B { B4, D3 }
/* Encoder resolution */ /* Encoder resolution */
#define ENCODER_RESOLUTION 4 #define ENCODER_RESOLUTION 4

View file

@ -31,9 +31,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_F1, KC_F2, KC_F3, KC_F4, KC_F1, KC_F2, KC_F3, KC_F4,
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS, KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_MUTE, KC_P4, KC_P5, KC_P6, KC_NO, KC_MUTE, KC_P4, KC_P5, KC_P6, _______,
MO(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT, MO(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT,
KC_BSPC, KC_P0, KC_NO, KC_PDOT, KC_NO, KC_BSPC, KC_P0, _______, KC_PDOT, _______,
KC_F5, KC_F6, KC_F7 KC_F5, KC_F6, KC_F7
@ -42,9 +42,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
RGB_HUD, RGB_SPI, RGB_HUI, _______, RGB_HUD, RGB_SPI, RGB_HUI, _______,
_______, RGB_RMOD, RGB_TOG, RGB_MOD, KC_NO, _______, RGB_RMOD, RGB_TOG, RGB_MOD, _______,
_______, RGB_VAD, RGB_SPD, RGB_VAI, _______, _______, RGB_VAD, RGB_SPD, RGB_VAI, _______,
_______, RGB_SAD, KC_NO, RGB_SAI, KC_NO, _______, RGB_SAD, _______, RGB_SAI, _______,
_______, _______, _______ _______, _______, _______
@ -53,9 +53,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______ _______, _______, _______
@ -64,9 +64,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______ _______, _______, _______
@ -82,6 +82,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
} else { } else {
tap_code(KC_VOLD); tap_code(KC_VOLD);
} }
break;
case 1:
if (clockwise) {
tap_code(KC_BRIU);
} else {
tap_code(KC_BRID);
}
break; break;
} }
return true; return true;

View file

@ -29,20 +29,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_F1, KC_F2, KC_F3, KC_F4, KC_F1, KC_F2, KC_F3, KC_F4,
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS, KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_MUTE, KC_P4, KC_P5, KC_P6, KC_NO, KC_MUTE, KC_P4, KC_P5, KC_P6, _______,
MO(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT, MO(_FN1), KC_P1, KC_P2, KC_P3, KC_PENT,
KC_BSPC, KC_P0, KC_NO, KC_PDOT, KC_NO, KC_BSPC, KC_P0, _______, KC_PDOT, _______,
_______, _______, _______ KC_F5, KC_F6, KC_F7
), ),
[_FN1] = LAYOUT( [_FN1] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
RGB_HUD, RGB_SPI, RGB_HUI, _______, RGB_HUD, RGB_SPI, RGB_HUI, _______,
_______, RGB_RMOD, RGB_TOG, RGB_MOD, KC_NO, _______, RGB_RMOD, RGB_TOG, RGB_MOD, _______,
_______, RGB_VAD, RGB_SPD, RGB_VAI, _______, _______, RGB_VAD, RGB_SPD, RGB_VAI, _______,
_______, RGB_SAD, KC_NO, RGB_SAI, KC_NO, _______, RGB_SAD, _______, RGB_SAI, _______,
_______, _______, _______ _______, _______, _______
@ -51,9 +51,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______ _______, _______, _______
@ -62,9 +62,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, KC_NO, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______ _______, _______, _______
@ -80,6 +80,13 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
} else { } else {
tap_code(KC_VOLD); tap_code(KC_VOLD);
} }
break;
case 1:
if (clockwise) {
tap_code(KC_BRIU);
} else {
tap_code(KC_BRID);
}
break; break;
} }
return true; return true;

View file

@ -5,7 +5,7 @@
A DIY numpad kit with macro row, two additional keys, OLED, RGB Underglow, and encoder. A DIY numpad kit with macro row, two additional keys, OLED, RGB Underglow, and encoder.
* Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery) * Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery)
* Hardware Supported: MurphPad v2.0 * Hardware Supported: MurphPad v3.1
* Hardware Availability: [MurphPad on MechWild](https://mechwild.com/product/murphpad/) * Hardware Availability: [MurphPad on MechWild](https://mechwild.com/product/murphpad/)
Make example for this keyboard (after setting up your build environment): Make example for this keyboard (after setting up your build environment):