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.md15
1 files changed, 1 insertions, 14 deletions
diff --git a/docs/feature_encoders.md b/docs/feature_encoders.md
index 5b6c3f163..8e854c1e5 100644
--- a/docs/feature_encoders.md
+++ b/docs/feature_encoders.md
@@ -46,9 +46,7 @@ For 4× encoders you also can assign default position if encoder skips pulses wh
46 46
47## Split Keyboards 47## Split Keyboards
48 48
49The above is enough for split keyboards that are symmetrical, i.e. the halves have the same number of encoders and they are on the same pins. 49If 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:
50If the halves are not symmetrical, you can define the pinout (and optionally, resolutions) of the right half separately.
51The left half will use the definitions above.
52 50
53```c 51```c
54#define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a } 52#define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a }
@@ -56,17 +54,6 @@ The left half will use the definitions above.
56#define ENCODER_RESOLUTIONS_RIGHT { 2, 4 } 54#define ENCODER_RESOLUTIONS_RIGHT { 2, 4 }
57``` 55```
58 56
59If only the right half has encoders, you must still define an empty array for the left pads (and resolutions, if you define `ENCODER_RESOLUTIONS_RIGHT`).
60
61```c
62#define ENCODERS_PAD_A { }
63#define ENCODERS_PAD_B { }
64#define ENCODER_RESOLUTIONS { }
65#define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a }
66#define ENCODERS_PAD_B_RIGHT { encoder1b, encoder2b }
67#define ENCODER_RESOLUTIONS_RIGHT { 2, 4 }
68```
69
70## Callbacks 57## Callbacks
71 58
72The callback functions can be inserted into your `<keyboard>.c`: 59The callback functions can be inserted into your `<keyboard>.c`: