diff options
author | Danny <nooges@users.noreply.github.com> | 2019-08-16 19:46:41 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-08-16 16:46:41 -0700 |
commit | 36dd261d06e86ed90997486776f06b286a163cd8 (patch) | |
tree | 96bf3d7419b66eb736cf1d1522f60fad298d9d64 /docs/feature_encoders.md | |
parent | 61b5914a80a7945952dd259cbe70d1e6752259c2 (diff) | |
download | qmk_firmware-36dd261d06e86ed90997486776f06b286a163cd8.tar.gz qmk_firmware-36dd261d06e86ed90997486776f06b286a163cd8.zip |
Add support for different encoder pinout for right half of split keyboard (#6521)
* Add support for different encoder pinouts for split keyboard
* Update documentation for new encoder pinout feature
Diffstat (limited to 'docs/feature_encoders.md')
-rw-r--r-- | docs/feature_encoders.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/feature_encoders.md b/docs/feature_encoders.md index bb2d538e7..cbf72914e 100644 --- a/docs/feature_encoders.md +++ b/docs/feature_encoders.md | |||
@@ -20,6 +20,15 @@ Additionally, the resolution can be specified in the same file (the default & su | |||
20 | 20 | ||
21 | #define ENCODER_RESOLUTION 4 | 21 | #define ENCODER_RESOLUTION 4 |
22 | 22 | ||
23 | ## Split Keyboards | ||
24 | |||
25 | If you are using different pinouts for the encoders on each half of a split keyboard, you can define the pinout for the right half like this: | ||
26 | |||
27 | ```c | ||
28 | #define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a } | ||
29 | #define ENCODERS_PAD_B_RIGHT { encoder1b, encoder2b } | ||
30 | ``` | ||
31 | |||
23 | ## Callbacks | 32 | ## Callbacks |
24 | 33 | ||
25 | The callback functions can be inserted into your `<keyboard>.c`: | 34 | The callback functions can be inserted into your `<keyboard>.c`: |