A funny algorithm for polling an encoder, with debounce (it seems to work well).
Scheme https://yadi.sk/i/BYAQyspg-CThYg
Firmware and source https://yadi.sk/d/fptgi55gYP2mLg
On this page of the site you can watch the video online Encoder polling algorithm with a duration of hours minute second in good quality, which was uploaded by the user Andrey Frolov 14 September 2018, share the link with friends and acquaintances, this video has already been watched 1,356 times on youtube and it was liked by 45 viewers. Enjoy your viewing!