It is amazing how many Arduino programmes for decoding rotary encoders start with something like: “I looked at all the available rotary encoder sketches and none of them met my needs, so I have ...
An Arduino library to use the Crowpanel 2.1" rotary controller and LCD display like this one: https://www.elecrow.com/crowpanel-2-1inch-hmi-esp32-rotary-display-480 ...