Merge pull request #8453 from heygauri/doc-rotaryio.IncrementalEncoder

Update documentation for rotaryio.IncrementalEncoder
This commit is contained in:
Scott Shawcroft 2023-10-02 13:16:47 -07:00 committed by GitHub
commit a3c932062f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@
#include "shared-bindings/util.h"
//| class IncrementalEncoder:
//| """IncrementalEncoder determines the relative rotational position based on two series of pulses."""
//| """IncrementalEncoder determines the relative rotational position based on two series of pulses.
//| It assumes that the encoder's common pin(s) are connected to ground,and enables pull-ups on
//| pin_a and pin_b."""
//|
//| def __init__(
//| self, pin_a: microcontroller.Pin, pin_b: microcontroller.Pin, divisor: int = 4