miketeachman / micropython-rotary

MicroPython module to read a rotary encoder.
MIT License
269 stars 56 forks source link

Fix pin pull-up for pyb #25

Closed markkamp closed 1 year ago

markkamp commented 1 year ago

ExtInt() overwrites the previously set Pin.PULL_UP by the Pin() function, so the pin pull is always none. Fixed by adding Pin.PULL_UP to ExtInt() function if pull_up is True.

miketeachman commented 1 year ago

Mark, Thanks for this bug fix. I just merged it. Sorry it took so long ! Mike