From 1293863cc055b92d9b62008ce8572f5c9cd3ce50 Mon Sep 17 00:00:00 2001 From: Gleb Sabirzyanov Date: Mon, 27 Jun 2022 11:05:15 +1000 Subject: [PATCH] Add note about divisor and smooth encoders --- docs/encoder.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/encoder.md b/docs/encoder.md index 57c4cd5..5bf280d 100644 --- a/docs/encoder.md +++ b/docs/encoder.md @@ -79,6 +79,9 @@ encoder_handler.pins = ( ) ``` +This setting is equivalent to `divisor` in the [rotaryio](https://docs.circuitpython.org/en/latest/shared-bindings/rotaryio/index.html#rotaryio.IncrementalEncoder.divisor) module. +The resolution of `1` for smooth encoders is not currently supported but you can use the resolution of `2` for them without issues and any noticeable difference. + ## Handler methods overrides Encoder methods `on_move_do` and `on_button_do` can be overridden for complex use cases.