diff options
author | Matthew Weldon <matthew.john.weldon@gmail.com> | 2020-07-23 22:42:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 19:42:56 -0700 |
commit | e620a7beb2beebee3881f7061eac218beb668e26 (patch) | |
tree | c6d1c00597896828520cd76ad5a168e6cd17f27b /keyboards/keycapsss/plaid_pad/keymaps | |
parent | d699fd1fb4127c9a0c13eaa1348b934ccd639627 (diff) |
[Keyboard] add encoder support to PlaidPad default mappings (#9396)
* Add flipped and discrete encoder support default mappings
* Fixed typo in readme
* Removed flipped layout, fix config.h encoder pin mapping, update readme
Co-authored-by: matt <matt@smooth.tech>
Diffstat (limited to 'keyboards/keycapsss/plaid_pad/keymaps')
-rw-r--r-- | keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c | 4 | ||||
-rw-r--r-- | keyboards/keycapsss/plaid_pad/keymaps/default/readme.md | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c b/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c index bdfd7fb780..7de3be5bd3 100644 --- a/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c +++ b/keyboards/keycapsss/plaid_pad/keymaps/default/keymap.c @@ -30,9 +30,9 @@ void keyboard_post_init_user(void) { void encoder_update_user(uint8_t index, bool clockwise) { if (index == 0) { // First encoder - top left if (clockwise) { - tap_code(KC_UP); + tap_code(KC_RIGHT); } else { - tap_code(KC_DOWN); + tap_code(KC_LEFT); } } else if (index == 1) { // Second encoder - top right if (clockwise) { diff --git a/keyboards/keycapsss/plaid_pad/keymaps/default/readme.md b/keyboards/keycapsss/plaid_pad/keymaps/default/readme.md index 1c1b1513dd..ccbea5f865 100644 --- a/keyboards/keycapsss/plaid_pad/keymaps/default/readme.md +++ b/keyboards/keycapsss/plaid_pad/keymaps/default/readme.md @@ -3,9 +3,11 @@ # Default Plaid-Pad Layout -This is the default layout that comes flashed on every Plaid-Pad. +This is the default layout for the plaid pad. The upper left (7) and right (/) switch, can be replaced by a rotary encoder. -They do "Up Arrow" (KC_UP) and "Down Arrow" (KC_DOWN). -Encoder with build-in switch are supported. +Encoders with built-in switch are supported and map to the original keys (7) and (/). +The upper left encoder performs a tap on "Right Arrow" (KC_RIGHT) and "Left Arrow" (KC_LEFT) when rotated clockwise and counter-clockwise in the respective direction for each step of the encoder. + +The upper right encoder performs a tap on "Up Arrow" (KC_UP) and "Down Arrow" (KC_DOWN) when rotated clockwise and counter-clockwise in the respective direction for each step of the encoder. |