circuitpython/ports
Jeff Epler 9eebb3dbab rotaryio: Add the ability to set the divisor
At present, Adafruit's rotary encoders all move 1 quadrature cycle per
detent, so we originally hard-coded division-by-4.  However, other
encoders exist, including ones without detents, ones with 2 detents per
cycle, and others with 4 detents per cycle.

The new `divisor` property and constructor argument allows selecting
a divisor of 1, 2, or 4; with the default of 4 giving backward
compatibility.

The property is not supported (yet?) on espressif MCUs; it throws an
error if a value other than 4 is set.
2021-10-16 09:43:45 -05:00
..
atmel-samd rotaryio: Add the ability to set the divisor 2021-10-16 09:43:45 -05:00
cxd56 Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
espressif rotaryio: Add the ability to set the divisor 2021-10-16 09:43:45 -05:00
litex Always use python3 2021-10-15 15:11:21 -05:00
mimxrt10xx Always use python3 2021-10-15 15:11:21 -05:00
nrf rotaryio: Add the ability to set the divisor 2021-10-16 09:43:45 -05:00
raspberrypi rotaryio: Add the ability to set the divisor 2021-10-16 09:43:45 -05:00
stm Always use python3 2021-10-15 15:11:21 -05:00
unix Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00