aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_encoders.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/feature_encoders.md')
-rw-r--r--docs/feature_encoders.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/feature_encoders.md b/docs/feature_encoders.md
index 8f9ba1a80..e2cafdac4 100644
--- a/docs/feature_encoders.md
+++ b/docs/feature_encoders.md
@@ -32,13 +32,20 @@ Additionally, the resolution, which defines how many pulses the encoder register
32#define ENCODER_RESOLUTION 4 32#define ENCODER_RESOLUTION 4
33``` 33```
34 34
35It can also be defined per-encoder, by instead defining:
36
37```c
38#define ENCODER_RESOLUTIONS { 4, 2 }
39```
40
35## Split Keyboards 41## Split Keyboards
36 42
37If 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: 43If you are using different pinouts for the encoders on each half of a split keyboard, you can define the pinout (and optionally, resolutions) for the right half like this:
38 44
39```c 45```c
40#define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a } 46#define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a }
41#define ENCODERS_PAD_B_RIGHT { encoder1b, encoder2b } 47#define ENCODERS_PAD_B_RIGHT { encoder1b, encoder2b }
48#define ENCODER_RESOLUTIONS_RIGHT { 2, 4 }
42``` 49```
43 50
44## Callbacks 51## Callbacks