circuitpython/ports/nrf/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
..
_bleio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
alarm Merge pull request #5273 from tannewt/fix_nrf_light_sleep_cdc 2021-08-31 13:29:04 +05:30
analogio run code formatting script 2021-03-15 19:27:36 +05:30
audiobusio Use NO_PIN, not 0, for PDMIn unset pins. 2021-09-10 13:18:29 -04:00
audiopwmio run code formatting script 2021-03-15 19:27:36 +05:30
board Remove nRF52832 support 2018-12-30 22:49:20 -05:00
busio Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
countio Fix GPIOTE crashes by checking everything is ok 2021-08-27 16:07:29 -07:00
digitalio run code formatting script 2021-03-15 19:27:36 +05:30
microcontroller Fix builds without alarm 2021-08-30 14:09:36 -07:00
neopixel_write run code formatting script 2021-03-15 19:27:36 +05:30
nvm run code formatting script 2021-03-15 19:27:36 +05:30
os run code formatting script 2021-03-15 19:27:36 +05:30
paralleldisplay Fix incorrect macros 2021-08-30 14:40:14 -07:00
pulseio Fix GPIOTE crashes by checking everything is ok 2021-08-27 16:07:29 -07:00
pwmio Switch to pin, frequency and duty_cycle PulseOut 2021-07-26 18:35:49 -07: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
rtc Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
supervisor run code formatting script 2021-03-15 19:27:36 +05:30
watchdog Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00