Per-encoder resolutions (#10259)

* Per-encoder resolutions

* Resolutions for right hand
This commit is contained in:
Ryan 2020-10-04 06:00:21 +11:00 committed by James Young
parent f728c249ce
commit 310662fce9
No known key found for this signature in database
GPG key ID: 8E1085BF6FCFBD74
2 changed files with 28 additions and 5 deletions

View file

@ -32,13 +32,20 @@ Additionally, the resolution, which defines how many pulses the encoder register
#define ENCODER_RESOLUTION 4
```
It can also be defined per-encoder, by instead defining:
```c
#define ENCODER_RESOLUTIONS { 4, 2 }
```
## Split Keyboards
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:
If 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:
```c
#define ENCODERS_PAD_A_RIGHT { encoder1a, encoder2a }
#define ENCODERS_PAD_B_RIGHT { encoder1b, encoder2b }
#define ENCODER_RESOLUTIONS_RIGHT { 2, 4 }
```
## Callbacks