circuitpython/ports/raspberrypi/common-hal
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
..
alarm Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
analogio run code formatting script 2021-03-15 19:27:36 +05:30
audiobusio Fix RP2040 I2S: always copy to output buffer 2021-09-07 16:35:42 -04:00
audiopwmio raspberrypi: audiopwmout: subtle for #5092 2021-08-24 16:33:20 -05:00
board Removed more includes 2021-02-26 22:35:38 -06:00
busio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
countio Fix RP2 countio reset 2021-08-27 17:39:19 -07:00
digitalio run code formatting script 2021-03-15 19:27:36 +05:30
imagecapture Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
microcontroller Implement reset_reason for raspberrypi port 2021-09-08 18:34:34 -04:00
neopixel_write Allow PIO to be user-interruptible 2021-08-27 08:38:51 -04:00
nvm run code formatting script 2021-03-15 19:27:36 +05:30
os Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
paralleldisplay Fix incorrect macros 2021-08-30 14:40:14 -07:00
pulseio Allow PIO to be user-interruptible 2021-08-27 08:38:51 -04:00
pwmio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
rgbmatrix run code formatting script 2021-03-15 19:27:36 +05:30
rotaryio rotaryio: Add the ability to set the divisor 2021-10-16 09:43:45 -05:00
rp2pio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
rtc run code formatting script 2021-03-15 19:27:36 +05:30
supervisor run code formatting script 2021-03-15 19:27:36 +05:30
watchdog run code formatting script 2021-03-15 19:27:36 +05:30